(this.webpackJsonparimo=this.webpackJsonparimo||[]).push([[4],{101:function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var n=a(2),r=a(6),i=a(7),c=a(70),o=a(50),s=a(11),l=new o.a,u="?verify_id="+Object(s.c)(),d=function(){function e(){Object(r.a)(this,e),this.wrapper=new o.a}return Object(i.a)(e,null,[{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{auth:!0};return new c.b(e)}},{key:"index",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Object(n.a)({},t);return u="?verify_id="+Object(s.c)(),new Promise((function(t,n){return e.request({auth:!0}).get("".concat(e.entity).concat(u),{params:r}).then((function(e){l.setWrapper(e,a).then((function(){return t(e.data)})).catch((function(){return n(e.data)}))})).catch((function(t){n(console.log("getList "+e.entity,t))}))}))}},{key:"getById",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Object(n.a)({},a);return u="?verify_id="+Object(s.c)(),new Promise((function(a,n){return t.request({auth:!0}).get("".concat(t.entity,"/").concat(e).concat(u),{params:i}).then((function(e){l.setWrapper(e,r).then((function(){return a(e.data)})).catch((function(){return n(e.data)}))})).catch((function(e){n(console.log("getById "+t.entity,e))}))}))}},{key:"create",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.required(),a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return u="?verify_id="+Object(s.c)(),new Promise((function(n,r){return e.request({auth:!0}).post("".concat(e.entity).concat(u),t).then((function(e){l.setWrapper(e,a).then((function(){return n(e.data)})).catch((function(){return r(e.data)}))})).catch((function(t){r(console.log("create "+e.entity,t))}))}))}},{key:"update",value:function(e,t){var a=this,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return u="?verify_id="+Object(s.c)(),new Promise((function(r,i){return a.request({auth:!0}).put("".concat(a.entity,"/").concat(t).concat(u),e).then((function(e){l.setWrapper(e,n).then((function(){return r(e.data)})).catch((function(){return i(e.data)}))})).catch((function(e){i(console.log("update "+a.entity,e))}))}))}},{key:"remove",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.required(),a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Object(n.a)({},a);return u="?verify_id="+Object(s.c)(),new Promise((function(a,n){return e.request({auth:!0}).delete("".concat(e.entity,"/").concat(t).concat(u),{params:i}).then((function(e){l.setWrapper(e,r).then((function(){return a(e.data)})).catch((function(){return n(e.data)}))})).catch((function(t){n(console.log("remove "+e.entity,t))}))}))}},{key:"entity",get:function(){throw new Error('"entity" getter not defined')}}]),e}()},103:function(e,t,a){"use strict";a.d(t,"b",(function(){return Be})),a.d(t,"a",(function(){return Ke}));var n=a(6),r=a(7),i=a(12),c=a(13),o=a(0),s=a.n(o),l=a(4),u=a.n(l),d=a(113),p=a(114),m=a(45),b=a.n(m),h=a(91),f=(a(222),function(e){Object(i.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(n.a)(this,a);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).state={activeNavbar:e.props.activeNavbar,navbarType:null,footerType:null,menuTheme:null,collapsedSidebar:null,notifications:!1,scrollToTop:!1},e.handleNavbarChange=function(t){e.props.changeNavbar(t),e.setState({activeNavbar:t})},e}return Object(r.a)(a,[{key:"componentDidMount",value:function(){this.setState({navbarType:this.props.navbarType,footerType:this.props.footerType,menuTheme:this.props.menuTheme,activeMode:this.props.activeMode,collapseSidebar:this.props.sidebarState,notifications:this.props.notifications,scrollToTop:this.props.scrollToTop})}},{key:"render",value:function(){var e=this,t=this.state,a=t.activeNavbar,n=t.navbarType,r=(t.footerType,t.menuTheme),i=t.activeMode;t.collapsedSidebar,t.notifications,t.scrollToTop;return s.a.createElement(Ke.Consumer,null,(function(t){return s.a.createElement("div",{className:u()("customizer d-none d-md-block",{open:!0===e.props.customizerState})},s.a.createElement("div",{className:"customizer-toggle",onClick:function(){return e.props.handleCustomizer(!e.props.customizerState)}},s.a.createElement(d.a,{className:"open-icon",size:15})),s.a.createElement("div",{className:"header d-flex justify-content-between px-2 pt-2"},s.a.createElement("div",{className:"title"},s.a.createElement("h4",{className:"text-uppercase mb-0"},"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438")),s.a.createElement("div",{className:"close-icon cursor-pointer",onClick:function(){return e.props.handleCustomizer(!1)}},s.a.createElement(p.a,{size:24}))),s.a.createElement("hr",null),s.a.createElement(b.a,{options:{wheelPropagation:!1},className:"customizer-content p-2"},s.a.createElement("div",{className:"menu-theme-colors"},s.a.createElement("h5",null,"\u0426\u0432\u0435\u0442\u0430 \u041c\u0435\u043d\u044e"),s.a.createElement("ul",{className:"list-inline unstyled-list"},s.a.createElement("li",{className:u()("color-box bg-primary",{selected:"primary"===r||!["primary","danger","info","warning","dark","success"].includes(r)}),onClick:function(){return e.props.changeMenuTheme("primary")}}),s.a.createElement("li",{className:u()("color-box bg-success",{selected:"success"===r}),onClick:function(){return e.props.changeMenuTheme("success")}}),s.a.createElement("li",{className:u()("color-box bg-danger",{selected:"danger"===r}),onClick:function(){return e.props.changeMenuTheme("danger")}}),s.a.createElement("li",{className:u()("color-box bg-info",{selected:"info"===r}),onClick:function(){return e.props.changeMenuTheme("info")}}),s.a.createElement("li",{className:u()("color-box bg-warning",{selected:"warning"===r}),onClick:function(){return e.props.changeMenuTheme("warning")}}),s.a.createElement("li",{className:u()("color-box bg-dark",{selected:"dark"===r}),onClick:function(){return e.props.changeMenuTheme("dark")}}))),s.a.createElement("hr",null),"vertical"===t.state.activeLayout&&s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"navbar-colors"},s.a.createElement("h5",null,"\u0426\u0432\u0435\u0442 \u041f\u0430\u043d\u0435\u043b\u0438"),s.a.createElement("ul",{className:"list-inline unstyled-list"},s.a.createElement("li",{className:u()("color-box bg-default border",{selected:"default"===a||"static"===n||!["default","primary","danger","info","warning","dark","success"].includes(a),disabled:"static"===n}),onClick:function(){return e.handleNavbarChange("default")}}),s.a.createElement("li",{className:u()("color-box bg-primary",{selected:"primary"===a&&"static"!==n,disabled:"static"===n}),onClick:function(){return e.handleNavbarChange("primary")}}),s.a.createElement("li",{className:u()("color-box bg-success",{selected:"success"===a&&"static"!==e.props.navbarType,disabled:"static"===n}),onClick:function(){return e.handleNavbarChange("success")}}),s.a.createElement("li",{className:u()("color-box bg-danger",{selected:"danger"===a&&"static"!==e.props.navbarType,disabled:"static"===n}),onClick:function(){return e.handleNavbarChange("danger")}}),s.a.createElement("li",{className:u()("color-box bg-info",{selected:"info"===a&&"static"!==e.props.navbarType,disabled:"static"===n}),onClick:function(){return e.handleNavbarChange("info")}}),s.a.createElement("li",{className:u()("color-box bg-warning",{selected:"warning"===a&&"static"!==e.props.navbarType,disabled:"static"===n}),onClick:function(){return e.handleNavbarChange("warning")}}),s.a.createElement("li",{className:u()("color-box bg-dark",{selected:"dark"===a&&"static"!==e.props.navbarType,disabled:"static"===n}),onClick:function(){return e.handleNavbarChange("dark")}}))),s.a.createElement("hr",null)),s.a.createElement("div",{className:"theme-mode"},s.a.createElement("h5",{className:"mt-1"},"\u0422\u0435\u043c\u0430"),s.a.createElement("div",{className:"d-inline-block mr-1"},s.a.createElement(h.a,{label:"\u0421\u0432\u0435\u0442\u043b\u0430\u044f",color:"primary",checked:"light"===i||!["light","dark","semi-dark"].includes(i),name:"themeLayout",onChange:function(){return e.props.changeMode("light")}})),s.a.createElement("div",{className:"d-inline-block mr-1"},s.a.createElement(h.a,{label:"\u0422\u0435\u043c\u043d\u0430\u044f",color:"primary",checked:"dark"===i,name:"themeLayout",onChange:function(){return e.props.changeMode("dark")}})))))}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.navbarType!==t.navbarType||e.footerType!==t.footerType||e.menuTheme!==t.menuTheme||e.activeMode!==t.activeMode||e.sidebarState!==t.collapsedSidebar||e.notifications!==t.notifications||e.scrollToTop!==t.scrollToTop?{activeNavbar:e.activeNavbar,navbarType:e.navbarType,footerType:e.footerType,menuTheme:e.menuTheme,activeMode:e.activeMode,collapsedSidebar:e.sidebarState,notifications:e.notifications,scrollToTop:e.scrollToTop}:null}}]),a}(s.a.Component)),v=a(17),g=a(36),y=a(115),O=a(116),E=a(195),j=a.n(E),S=function(e){Object(i.a)(a,e);var t=Object(c.a)(a);function a(){return Object(n.a)(this,a),t.apply(this,arguments)}return Object(r.a)(a,[{key:"render",value:function(){var e=this.props,t=e.toggleSidebarMenu,a=e.activeTheme,n=e.collapsed,r=e.toggle,i=e.sidebarVisibility,c=e.menuShadow;return s.a.createElement("div",{className:"navbar-header"},s.a.createElement("ul",{className:"nav navbar-nav flex-row"},s.a.createElement("li",{className:"nav-item mr-auto"},s.a.createElement(g.b,{to:"/",className:"navbar-brand"},s.a.createElement("img",{src:j.a,width:"35",height:"24",alt:"logo"}),s.a.createElement("h2",{className:"brand-text mb-0"},"Arimo"))),s.a.createElement("li",{className:"nav-item nav-toggle"},s.a.createElement("div",{className:"nav-link modern-nav-toggle"},!1===n?s.a.createElement(y.a,{onClick:function(){t(!0),r()},className:u()("toggle-icon icon-x d-none d-xl-block font-medium-4",{"text-primary":"primary"===a,"text-success":"success"===a,"text-danger":"danger"===a,"text-info":"info"===a,"text-warning":"warning"===a,"text-dark":"dark"===a}),size:20,"data-tour":"toggle-icon"}):s.a.createElement(O.a,{onClick:function(){t(!1),r()},className:u()("toggle-icon icon-x d-none d-xl-block font-medium-4",{"text-primary":"primary"===a,"text-success":"success"===a,"text-danger":"danger"===a,"text-info":"info"===a,"text-warning":"warning"===a,"text-dark":"dark"===a}),size:20}),s.a.createElement(p.a,{onClick:i,className:u()("toggle-icon icon-x d-block d-xl-none font-medium-4",{"text-primary":"primary"===a,"text-success":"success"===a,"text-danger":"danger"===a,"text-info":"info"===a,"text-warning":"warning"===a,"text-dark":"dark"===a}),size:20})))),s.a.createElement("div",{className:u()("shadow-bottom",{"d-none":!1===c})}))}}]),a}(o.Component),T=a(96),A=a(117),N=a(118),k=a(119),w=a(120),L=a(121),C=a(122),I=a(123),D=a(124),P=a(125),x=a(126),M=[{id:"projectsTab",title:"\u041f\u0440\u043e\u0435\u043a\u0442\u044b",type:"collapse",icon:s.a.createElement(A.a,{size:20}),children:[{id:"projects",title:"\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432",type:"item",icon:s.a.createElement(O.a,{size:12}),permissions:["admin","manager","user"],navLink:"/"}]},{type:"groupHeader",groupTitle:"\u0421\u043e\u0431\u044b\u0442\u0438\u044f"},{id:"events",title:"\u0421\u043f\u0438\u0441\u043e\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u0439",type:"item",icon:s.a.createElement(N.a,{size:20}),permissions:["admin","manager","user"],navLink:"/events"},{type:"groupHeader",groupTitle:"\u0420\u0435\u043b\u0438\u0437\u044b"},{id:"releases",title:"\u0421\u043f\u0438\u0441\u043e\u043a \u0440\u0435\u043b\u0438\u0437\u043e\u0432",type:"item",icon:s.a.createElement(N.a,{size:20}),permissions:["admin","manager","user"],navLink:"/releases"},{type:"groupHeader",groupTitle:"\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b"},{id:"tasks",title:"\u0417\u0430\u0434\u0430\u0447\u0438",type:"item",icon:s.a.createElement(k.a,{size:20}),permissions:["admin","manager","user"],navLink:"/tasks"},{id:"contacts",title:"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b",type:"item",icon:s.a.createElement(w.a,{size:20}),permissions:["admin","manager","user"],navLink:"/contacts"},{id:"finances",title:"\u0424\u0438\u043d\u0430\u043d\u0441\u044b",type:"item",icon:s.a.createElement(L.a,{size:20}),permissions:["admin","manager","user"],navLink:"/coming"},{id:"base",title:"\u0411\u0430\u0437\u0430 \u0437\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0439",type:"item",icon:s.a.createElement(C.a,{size:20}),permissions:["admin","manager","user"],navLink:"/coming"},{id:"merch",title:"\u041c\u0435\u0440\u0447",type:"item",icon:s.a.createElement(I.a,{size:20}),permissions:["admin","manager","user"],navLink:"/coming"},{type:"groupHeader",groupTitle:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u044c"},{id:"usersTab",title:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c",type:"collapse",icon:s.a.createElement(D.a,{size:20}),children:[{id:"users",title:"\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439",type:"item",icon:s.a.createElement(O.a,{size:12}),permissions:["admin"],navLink:"/users"}]},{id:"support",title:"\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430",type:"item",icon:s.a.createElement(P.a,{size:20}),permissions:["admin","manager","user"],navLink:"/coming"},{id:"updates",title:"\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f",type:"item",icon:s.a.createElement(x.a,{size:20}),permissions:["admin","manager","user"],navLink:"/coming"}],F=a(299),R=a(127),_=function(e){Object(i.a)(a,e);var t=Object(c.a)(a);function a(e){var r;return Object(n.a)(this,a),(r=t.call(this,e)).state={isOpen:!1,activeItem:r.props.activePath},r.handleActiveItem=function(e){r.setState({activeItem:e})},r.flag=!0,r.parentArray=[],r.childObj={},r}return Object(r.a)(a,[{key:"componentDidUpdate",value:function(e,t){e.activePath!==this.props.activePath&&(this.childObj.navLink&&this.childObj.collapsed&&this.props.collapsedMenuPaths(this.childObj.navLink),this.props.activePath!==this.childObj.navLink||this.props.parentArr.includes(this.parentArray[0])?this.props.parentArr.includes(this.parentArray)&&this.props.parentArr.splice(0,this.props.parentArr.length):(this.props.parentArr.splice(0,this.props.parentArr.length),this.props.parentArr.push(this.parentArray)))}},{key:"renderChild",value:function(e,t,a,n,r){var i=this;return s.a.createElement("ul",{className:"menu-content"},e.children?e.children.map((function(r){var c="external-link"===r.type?"a":g.a;return!i.parentArray.includes(e.id)&&i.flag&&i.parentArray.push(e.id),r.navlink&&r.collapsed&&i.props.collapsedMenuPaths(r.navLink),i.props.activeItemState===r.navLink&&(i.childObj=r,i.props.parentArr.push(i.parentArray),i.flag=!1),r.permissions&&r.permissions.includes(i.props.currentUser)||void 0===r.permissions?s.a.createElement("li",{key:r.id,className:u()({hover:i.props.hoverIndex===r.id,"has-sub":"collapse"===r.type,open:"collapse"===r.type&&t.includes(r.id),"sidebar-group-active":i.props.currentActiveGroup.includes(r.id),active:i.props.activeItemState===r.navLink&&"item"===r.type||e.parentOf&&e.parentOf.includes(i.props.activeItemState),disabled:r.disabled}),onClick:function(t){t.stopPropagation(),a(r.id,e.id,r.type),r.navLink&&void 0!==r.navLink&&n(r.navLink),i.props.deviceWidth<=1200&&"item"===r.type&&i.props.toggleMenu()}},s.a.createElement(c,{className:u()({"d-flex justify-content-between":"collapse"===r.type}),to:r.navLink&&"item"===r.type?r.navLink:"",href:"external-link"===r.type?r.navLink:"",onMouseEnter:function(){i.props.handleSidebarMouseEnter(r.id)},onMouseLeave:function(){i.props.handleSidebarMouseEnter(r.id)},key:r.id,onClick:function(e){return"collapse"===r.type?e.preventDefault():""},target:r.newTab?"_blank":void 0},s.a.createElement("div",{className:"menu-text"},r.icon,s.a.createElement("span",{className:"menu-item menu-title"},r.title)),r.badge?s.a.createElement(F.a,{color:r.badge,className:"float-right mr-2",pill:!0},r.badgeText):"","collapse"===r.type?s.a.createElement(R.a,{className:"menu-toggle-icon",size:13}):""),r.children?i.renderChild(r,t,a,n,e.id):""):r.navLink!==i.props.activePath||r.permissions.includes(i.props.currentUser)?null:i.props.redirectUnauthorized()})):null)}},{key:"render",value:function(){return s.a.createElement(s.a.Fragment,null,this.renderChild(this.props.group,this.props.activeGroup,this.props.handleGroupClick,this.props.handleActiveItem,null))}}]),a}(s.a.Component),H=a(22),V=a(20),z=function(e){Object(i.a)(a,e);var t=Object(c.a)(a);function a(e){var r;return Object(n.a)(this,a),(r=t.call(this,e)).state={flag:!0,isHovered:!1,activeGroups:[],currentActiveGroup:[],tempArr:[]},r.handleGroupClick=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=r.state.activeGroups,i=r.state.currentActiveGroup,c=r.state.tempArr;if("item"===a&&null===t?(i=[],c=[]):"item"===a&&null!==t?(i=[],c.includes(t)?c.splice(c.indexOf(t)+1,c.length):(c=[]).push(t),i=c.slice(0)):"collapse"===a&&null===t?(c=[]).push(e):"collapse"===a&&null!==t?(i.includes(t)&&(c=i.slice(0)),c.includes(e)?c.splice(c.indexOf(e),c.length):c.push(e)):c=[],"collapse"===a)if(n.includes(e))n.splice(n.indexOf(e),1);else{var o=n.filter((function(e){return-1===i.indexOf(e)}));o.length>0&&!n.includes(t)&&(n=n.filter((function(e){return!o.includes(e)}))),n.includes(t)&&i.includes(t)&&(n=i.slice(0)),n.includes(e)||n.push(e)}"item"===a&&(n=i.slice(0)),r.setState({activeGroups:n,tempArr:c,currentActiveGroup:i})},r.initRender=function(e){r.setState({activeGroups:e.slice(0),currentActiveGroup:e.slice(0),flag:!1})},r.parentArr=[],r.collapsedPath=null,r.redirectUnauthorized=function(){H.a.push("/login")},r}return Object(r.a)(a,[{key:"componentDidMount",value:function(){this.initRender(this.parentArr[0]?this.parentArr[0]:[])}},{key:"componentDidUpdate",value:function(e,t){e.activePath!==this.props.activePath&&(null!==this.collapsedMenuPaths&&this.props.collapsedMenuPaths(this.collapsedMenuPaths),this.initRender(this.parentArr[0]?this.parentArr[this.parentArr.length-1]:[]))}},{key:"render",value:function(){var e=this,t=M.map((function(t){var a="external-link"===t.type?"a":g.a;if("groupHeader"===t.type)return s.a.createElement("li",{className:"navigation-header",key:"group-header-".concat(t.groupTitle)},s.a.createElement("span",null,t.groupTitle));var n=s.a.createElement("li",{className:u()("nav-item",{"has-sub":"collapse"===t.type,open:e.state.activeGroups.includes(t.id),"sidebar-group-active":e.state.currentActiveGroup.includes(t.id),hover:e.props.hoverIndex===t.id,active:e.props.activeItemState===t.navLink&&"item"===t.type||t.parentOf&&t.parentOf.includes(e.props.activeItemState),disabled:t.disabled}),key:t.id,onClick:function(a){a.stopPropagation(),"item"===t.type?(e.props.handleActiveItem(t.navLink),e.handleGroupClick(t.id,null,t.type),e.props.deviceWidth<=1200&&"item"===t.type&&e.props.toggleMenu()):e.handleGroupClick(t.id,null,t.type)}},s.a.createElement(a,{to:t.filterBase?t.filterBase:t.navLink&&"item"===t.type?t.navLink:"",href:"external-link"===t.type?t.navLink:"",className:"d-flex ".concat(t.badgeText?"justify-content-between":"justify-content-start"),onMouseEnter:function(){e.props.handleSidebarMouseEnter(t.id)},onMouseLeave:function(){e.props.handleSidebarMouseEnter(t.id)},key:t.id,onClick:function(e){return"collapse"===t.type?e.preventDefault():""},target:t.newTab?"_blank":void 0},s.a.createElement("div",{className:"menu-text"},t.icon,s.a.createElement("span",{className:"menu-item menu-title"},t.title)),t.badge?s.a.createElement("div",{className:"menu-badge"},s.a.createElement(F.a,{color:t.badge,className:"mr-1",pill:!0},t.badgeText)):"","collapse"===t.type?s.a.createElement(R.a,{className:"menu-toggle-icon",size:13}):""),"collapse"===t.type?s.a.createElement(_,{group:t,handleGroupClick:e.handleGroupClick,activeGroup:e.state.activeGroups,handleActiveItem:e.props.handleActiveItem,activeItemState:e.props.activeItemState,handleSidebarMouseEnter:e.props.handleSidebarMouseEnter,activePath:e.props.activePath,hoverIndex:e.props.hoverIndex,initRender:e.initRender,parentArr:e.parentArr,triggerActive:void 0,currentActiveGroup:e.state.currentActiveGroup,permission:e.props.role,currentUser:e.props.currentUser,redirectUnauthorized:e.redirectUnauthorized,collapsedMenuPaths:e.props.collapsedMenuPaths,toggleMenu:e.props.toggleMenu,deviceWidth:e.props.deviceWidth}):"");return t.navLink&&void 0!==t.collapsed&&!0===t.collapsed&&(e.collapsedPath=t.navLink,e.props.collapsedMenuPaths(t.navLink)),"collapse"===t.type||"external-link"===t.type||"item"===t.type&&t.permissions&&t.permissions.includes(e.props.currentUser)||void 0===t.permissions?n:"item"!==t.type||t.navLink!==e.props.activePath||t.permissions.includes(e.props.currentUser)?void 0:e.redirectUnauthorized()}));return s.a.createElement(s.a.Fragment,null,t)}}]),a}(s.a.Component),U=Object(v.b)((function(e){return{role:e.users.data.role}}))(z),W=a(48),G=function(e){Object(i.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(n.a)(this,a);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).state={width:window.innerWidth,activeIndex:null,hoveredMenuItem:null,activeItem:e.props.activePath,menuShadow:!1,ScrollbarTag:b.a},e.mounted=!1,e.updateWidth=function(){e.mounted&&(e.setState((function(e){return{width:window.innerWidth}})),e.checkDevice())},e.checkDevice=function(){var t=" -webkit- -moz- -o- -ms- ".split(" ");return"ontouchstart"in window||window.DocumentTouch?e.setState({ScrollbarTag:"div"}):e.setState({ScrollbarTag:b.a}),function(e){return window.matchMedia(e).matches}(["(",t.join("touch-enabled),("),"heartz",")"].join(""))},e.changeActiveIndex=function(t){t!==e.state.activeIndex?e.setState({activeIndex:t}):e.setState({activeIndex:null})},e.handleSidebarMouseEnter=function(t){t!==e.state.hoveredMenuItem?e.setState({hoveredMenuItem:t}):e.setState({hoveredMenuItem:null})},e.handleActiveItem=function(t){e.setState({activeItem:t})},e}return Object(r.a)(a,[{key:"componentDidMount",value:function(){this.mounted=!0,this.mounted&&("undefined"!==window&&window.addEventListener("resize",this.updateWidth,!1),this.checkDevice())}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){var e=this,t=this.props,a=t.visibilityState,n=t.toggleSidebarMenu,r=t.sidebarHover,i=t.toggle,c=t.color,o=t.sidebarVisibility,l=t.activeTheme,d=t.collapsed,p=t.activePath,m=t.sidebarState,b=t.currentLang,h=t.permission,f=t.collapsedMenuPaths,v=this.state,g=v.menuShadow,y=v.activeIndex,O=v.hoveredMenuItem,E=v.activeItem,j=v.ScrollbarTag,A=function(t,a){if(t&&"up"===a&&t.scrollTop>=100)e.setState({menuShadow:!0});else{if(!(t&&"down"===a&&t.scrollTop<100))return;e.setState({menuShadow:!1})}};return s.a.createElement(Ke.Consumer,null,(function(t){var v=t.state.direction;return s.a.createElement(s.a.Fragment,null,s.a.createElement(T.a,{onSwipe:function(e){o()},direction:"rtl"===v?"DIRECTION_LEFT":"DIRECTION_RIGHT"},s.a.createElement("div",{className:"menu-swipe-area d-xl-none d-block vh-100"})),s.a.createElement("div",{className:u()("main-menu menu-fixed menu-light menu-accordion menu-shadow theme-".concat(l),{collapsed:!0===m,"hide-sidebar":e.state.width<1200&&!1===a}),onMouseEnter:function(){return r(!1)},onMouseLeave:function(){return r(!0)}},s.a.createElement(S,{toggleSidebarMenu:n,toggle:i,sidebarBgColor:c,sidebarVisibility:o,activeTheme:l,collapsed:d,menuShadow:g,activePath:p,sidebarState:m}),s.a.createElement(j,Object.assign({className:u()("main-menu-content",{"overflow-hidden":"div"!==j,"overflow-scroll":"div"===j})},"div"!==j&&{options:{wheelPropagation:!1},onScrollDown:function(e){return A(e,"down")},onScrollUp:function(e){return A(e,"up")},onYReachStart:function(){return!0===g&&e.setState({menuShadow:!1})}}),s.a.createElement(T.a,{onSwipe:function(){o()},direction:"rtl"===v?"DIRECTION_RIGHT":"DIRECTION_LEFT"},s.a.createElement("ul",{className:"navigation navigation-main"},s.a.createElement(U,{setActiveIndex:e.changeActiveIndex,activeIndex:y,hoverIndex:O,handleSidebarMouseEnter:e.handleSidebarMouseEnter,activeItemState:E,handleActiveItem:e.handleActiveItem,activePath:p,lang:b,permission:h,currentUser:e.props.role,collapsedMenuPaths:f,toggleMenu:o,deviceWidth:e.props.deviceWidth}))))))}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.activePath!==t.activeItem?{activeItem:e.activePath}:null}}]),a}(o.Component),K=Object(v.b)((function(e){return{role:e.users.data.role||Object(W.k)().role}}))(G),B=a(306),q=a(100),Y=a(300),Q=a(301),X=a(302),Z=a(303),J=a(27),$=a(168),ee=a(39),te=a(52),ae=a(29),ne=a.n(ae),re=a(128),ie=(s.a.Component,a(72)),ce=a.n(ie),oe=function(){return function(e){}},se=a(82),le=function(e,t,a){var n=Array.from(e),r=n.splice(t,1),i=Object(q.a)(r,1)[0];return n.splice(a,0,i),n},ue=function(e){Object(i.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(n.a)(this,a);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).state={showBookmarks:!1,value:"",noSuggestions:!1,isStarred:!1,suggestions:[],starredItems:[]},e.updateBookmarks=!1,e.handleBookmarksVisibility=function(){e.setState({showBookmarks:!e.state.showBookmarks,value:"",suggestions:[],noSuggestions:!1,starred:null})},e.onDragEnd=function(t){if(t.destination){var a=le(e.state.starredItems,t.source.index,t.destination.index);e.setState({starredItems:a})}},e.renderBookmarks=function(){return e.updateBookmarks=!0,s.a.createElement(se.a,{onDragEnd:e.onDragEnd},s.a.createElement(se.c,{droppableId:"droppable",direction:"horizontal"},(function(t,a){return s.a.createElement("div",Object.assign({ref:t.innerRef},t.droppableProps,{className:"d-flex flex-sm-wrap flex-lg-nowrap draggable-cards"}),e.state.starredItems.map((function(e,t){var a=J[e.icon?e.icon:"X"];return s.a.createElement(se.b,{key:e.target,draggableId:e.target,index:t},(function(t,n){return s.a.createElement("div",Object.assign({ref:t.innerRef},t.draggableProps,t.dragHandleProps),s.a.createElement(Y.a,{className:"nav-item d-none d-lg-block"},s.a.createElement(Q.a,{tag:"span",id:e.target,className:"nav-link cursor-pointer",onClick:function(){return H.a.push(e.link)}},s.a.createElement(a,{size:21})),s.a.createElement(X.a,{placement:"bottom",target:e.target},e.title)))}))})),t.placeholder)})))},e}return Object(r.a)(a,[{key:"componentDidUpdate",value:function(e){e.bookmarks.starred.length!==this.state.starredItems.length&&!0===this.updateBookmarks&&(this.setState({starredItems:this.props.bookmarks.starred}),this.updateBookmarks=!1)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.bookmarks,a=t.suggestions,n=t.starred,r=e.loadSuggestions;this.setState({suggestions:a,starredItems:n},r())}},{key:"render",value:function(){var e=this.props,t=e.bookmarks,a=t.extraStarred,n=(t.suggestions,e.sidebarVisibility);e.updateStarred,e.handleAppOverlay,a.length>0&&a.map((function(e){var t=J[e.icon?e.icon:null];return s.a.createElement(Z.a,{key:e.id,href:e.link},s.a.createElement(t,{size:15}),s.a.createElement("span",{className:"align-middle ml-1"},e.title))}));return s.a.createElement("div",{className:"mr-auto float-left bookmark-wrapper d-flex align-items-center"},s.a.createElement("ul",{className:"navbar-nav d-xl-none"},s.a.createElement(Y.a,{className:"mobile-menu mr-auto"},s.a.createElement(Q.a,{className:"nav-menu-main menu-toggle hidden-xs is-active",onClick:n},s.a.createElement($.a,{className:"ficon"})))))}}]),a}(s.a.PureComponent),de=Object(v.b)((function(e){return{bookmarks:e.navbar}}),{loadSuggestions:oe,updateStarred:function(e){return function(t){ce.a.post("api/update/bookmarks",{obj:e}).then((function(){t({type:"UPDATE_STARRED",object:e}),t((function(e){}))}))}}})(ue),pe=a(304),me=a(305),be=a(307),he=a(172),fe=a(11),ve=a(71),ge=a(108),ye=function(e){return s.a.createElement(pe.a,{right:!0},s.a.createElement(Z.a,{tag:"a",href:"#",onClick:function(){return function(e){try{Object(fe.b)().me_id&&""!==Object(fe.b)().me_id&&null!==Object(fe.b)().me_id?e.SwitchToAnotherUser(Object(fe.b)().me_id,!0):e.logoutUser()}catch(t){e.logoutUser()}}(e)}},s.a.createElement(he.a,{size:14,className:"mr-50"}),s.a.createElement("span",{className:"align-middle"},"Log Out")))},Oe=function(e){Object(i.a)(a,e);var t=Object(c.a)(a);function a(e){var r;return Object(n.a)(this,a),(r=t.call(this,e)).handleNavbarSearch=function(){r.setState({navbarSearch:!r.state.navbarSearch})},r.state={navbarSearch:!1,suggestions:[]},r}return Object(r.a)(a,[{key:"render",value:function(){return s.a.createElement("ul",{className:"nav navbar-nav navbar-nav-user float-right"},s.a.createElement(me.a,{tag:"li",className:"dropdown-user nav-item"},s.a.createElement(be.a,{tag:"a",className:"nav-link dropdown-user-link"},s.a.createElement("div",{className:"user-nav d-sm-flex d-none"},s.a.createElement("span",{className:"user-name text-bold-600"}," ",this.props.userData?this.props.userData.name:""," "),s.a.createElement("span",{className:"user-status"}," ",this.props.userData?this.props.userData.email:"")),s.a.createElement("span",{"data-tour":"user"},s.a.createElement("img",{src:this.props.userImg,className:"round",height:"40",width:"40",alt:"avatar"}))),s.a.createElement(ye,this.props)))}}]),a}(s.a.PureComponent),Ee=Object(v.b)((function(e){return{userData:e.users.data}}),{logoutUser:ve.b,SwitchToAnotherUser:ge.a})(Oe),je=a(203),Se=a.n(je),Te=function(e){var t=["primary","danger","success","info","warning","dark"];return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"content-overlay"}),s.a.createElement("div",{className:"header-navbar-shadow"}),s.a.createElement(B.a,{className:u()("header-navbar navbar-expand-lg navbar navbar-with-menu navbar-shadow",{"navbar-light":"default"===e.navbarColor||!t.includes(e.navbarColor),"navbar-dark":t.includes(e.navbarColor),"bg-primary":"primary"===e.navbarColor&&"static"!==e.navbarType,"bg-danger":"danger"===e.navbarColor&&"static"!==e.navbarType,"bg-success":"success"===e.navbarColor&&"static"!==e.navbarType,"bg-info":"info"===e.navbarColor&&"static"!==e.navbarType,"bg-warning":"warning"===e.navbarColor&&"static"!==e.navbarType,"bg-dark":"dark"===e.navbarColor&&"static"!==e.navbarType,"d-none":"hidden"===e.navbarType&&!e.horizontal,"floating-nav":"floating"===e.navbarType&&!e.horizontal||!["floating","static","sticky","hidden"].includes(e.navbarType)&&!e.horizontal,"navbar-static-top":"static"===e.navbarType&&!e.horizontal,"fixed-top":"sticky"===e.navbarType||e.horizontal,scrolling:e.horizontal&&e.scrolling})},s.a.createElement("div",{className:"navbar-wrapper"},s.a.createElement("div",{className:"navbar-container content"},s.a.createElement("div",{className:"navbar-collapse d-flex justify-content-between align-items-center",id:"navbar-mobile"},s.a.createElement("div",{className:"bookmark-wrapper"},s.a.createElement(de,{sidebarVisibility:e.sidebarVisibility,handleAppOverlay:e.handleAppOverlay})),e.horizontal?s.a.createElement("div",{className:"logo d-flex align-items-center"},s.a.createElement("div",{className:"brand-logo mr-50"}),s.a.createElement("h2",{className:"text-primary brand-text mb-0"},"Arimo")):null,s.a.createElement(Ee,{handleAppOverlay:e.handleAppOverlay,changeCurrentLang:e.changeCurrentLang,userImg:Se.a}))))))},Ae=a(204),Ne=a.n(Ae),ke=a(107),we=a(161),Le=a(148),Ce=function(e){return s.a.createElement("footer",{className:u()("footer footer-light",{"footer-static":"static"===e.footerType||!["sticky","static","hidden"].includes(e.footerType),"d-none":"hidden"===e.footerType})},s.a.createElement("p",{className:"mb-0 clearfix"},s.a.createElement("span",{className:"float-md-left d-block d-md-inline-block mt-25"},"COPYRIGHT \xa9 ",(new Date).getFullYear(),s.a.createElement("a",{href:"#",target:"_blank",rel:"noopener noreferrer"},"Arimo,"),"\u0412\u0441\u0435 \u043f\u0440\u0430\u0432\u0430 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u044b"),s.a.createElement("span",{className:"float-md-right d-none d-md-block"},s.a.createElement("span",{className:"align-middle"},"\u0421\u0434\u0435\u043b\u0430\u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043b\u044e\u0431\u043e\u0432\u044c\u044e")," ",s.a.createElement(we.a,{className:"text-danger",size:15}))),!1===e.hideScrollToTop?s.a.createElement(Ne.a,{showUnder:160},s.a.createElement(ke.a,{color:"primary",className:"btn-icon scroll-top"},s.a.createElement(Le.a,{size:15}))):null)},Ie=function(e){Object(i.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(n.a)(this,a);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).state={width:window.innerWidth,sidebarState:e.props.app.customizer.sidebarCollapsed,layout:e.props.app.customizer.theme,collapsedContent:e.props.app.customizer.sidebarCollapsed,sidebarHidden:!1,currentLang:"en",appOverlay:!1,customizer:!1,currRoute:e.props.location.pathname},e.collapsedPaths=[],e.mounted=!1,e.updateWidth=function(){e.mounted&&e.setState((function(e){return{width:window.innerWidth}}))},e.handleCustomizer=function(t){e.setState({customizer:t})},e.handleCollapsedMenuPaths=function(t){var a=e.collapsedPaths;a.includes(t)||(a.push(t),e.collapsedPaths=a)},e.toggleSidebarMenu=function(t){e.setState({sidebarState:!e.state.sidebarState,collapsedContent:!e.state.collapsedContent})},e.sidebarMenuHover=function(t){e.setState({sidebarState:t})},e.handleSidebarVisibility=function(){e.mounted&&(void 0!==window&&window.addEventListener("resize",(function(){e.state.sidebarHidden&&e.setState({sidebarHidden:!e.state.sidebarHidden})})),e.setState({sidebarHidden:!e.state.sidebarHidden}))},e.handleCurrentLanguage=function(t){e.setState({currentLang:t})},e.handleAppOverlay=function(t){t.length>0?e.setState({appOverlay:!0}):(t.length<0||""===t)&&e.setState({appOverlay:!1})},e.handleAppOverlayClick=function(){e.setState({appOverlay:!1})},e}return Object(r.a)(a,[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.props,t=e.location.pathname,a=e.app.customizer,n=a.theme,r=a.direction;if(this.mounted){"undefined"!==window&&window.addEventListener("resize",this.updateWidth,!1),this.collapsedPaths.includes(t)&&this.props.collapseSidebar(!0);var i=n;return"rtl"===r?document.getElementsByTagName("html")[0].setAttribute("dir","rtl"):document.getElementsByTagName("html")[0].setAttribute("dir","ltr"),"dark"===i?document.body.classList.add("dark-layout"):"semi-dark"===i?document.body.classList.add("semi-dark-layout"):null}}},{key:"componentDidUpdate",value:function(e,t){var a=this.props,n=a.location.pathname,r=a.app.customizer,i=r.theme,c=r.sidebarCollapsed,o=i;this.mounted&&("dark"===o&&(document.body.classList.remove("semi-dark-layout"),document.body.classList.add("dark-layout")),"semi-dark"===o&&(document.body.classList.remove("dark-layout"),document.body.classList.add("semi-dark-layout")),"dark"!==o&&"semi-dark"!==o&&document.body.classList.remove("dark-layout","semi-dark-layout"),e.app.customizer.sidebarCollapsed!==this.props.app.customizer.sidebarCollapsed&&this.setState({collapsedContent:c,sidebarState:c}),e.app.customizer.sidebarCollapsed===this.props.app.customizer.sidebarCollapsed&&n!==e.location.pathname&&this.collapsedPaths.includes(n)&&this.props.collapseSidebar(!0),e.app.customizer.sidebarCollapsed!==this.props.app.customizer.sidebarCollapsed||n===e.location.pathname||this.collapsedPaths.includes(n)||this.props.collapseSidebar(!1))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){var e=this.props.app.customizer,t={toggleSidebarMenu:this.props.collapseSidebar,toggle:this.toggleSidebarMenu,sidebarState:this.state.sidebarState,sidebarHover:this.sidebarMenuHover,sidebarVisibility:this.handleSidebarVisibility,visibilityState:this.state.sidebarHidden,activePath:this.props.match.path,collapsedMenuPaths:this.handleCollapsedMenuPaths,currentLang:this.state.currentLang,activeTheme:e.menuTheme,collapsed:this.state.collapsedContent,permission:this.props.role,deviceWidth:this.state.width},a={toggleSidebarMenu:this.toggleSidebarMenu,sidebarState:this.state.sidebarState,sidebarVisibility:this.handleSidebarVisibility,currentLang:this.state.currentLang,changeCurrentLang:this.handleCurrentLanguage,handleAppOverlay:this.handleAppOverlay,appOverlayState:this.state.appOverlay,navbarColor:e.navbarColor,navbarType:e.navbarType},n={footerType:e.footerType,hideScrollToTop:e.hideScrollToTop},r={customizerState:this.state.customizer,handleCustomizer:this.handleCustomizer,changeMode:this.props.changeMode,changeNavbar:this.props.changeNavbarColor,changeNavbarType:this.props.changeNavbarType,changeFooterType:this.props.changeFooterType,changeMenuTheme:this.props.changeMenuColor,collapseSidebar:this.props.collapseSidebar,hideScrollToTop:this.props.hideScrollToTop,hideNotifications:this.props.hideNotifications,activeMode:e.theme,activeNavbar:e.navbarColor,navbarType:e.navbarType,footerType:e.footerType,menuTheme:e.menuTheme,scrollToTop:e.hideScrollToTop,notifications:e.notifications,sidebarState:e.sidebarCollapsed};return s.a.createElement("div",{className:u()("wrapper vertical-layout theme-".concat(e.menuTheme),{"menu-collapsed":!0===this.state.collapsedContent&&this.state.width>=1200,"fixed-footer":"sticky"===e.footerType,"navbar-static":"static"===e.navbarType,"navbar-sticky":"sticky"===e.navbarType,"navbar-floating":"floating"===e.navbarType,"navbar-hidden":"hidden"===e.navbarType,"theme-primary":!["primary","success","danger","info","warning","dark"].includes(e.menuTheme)})},s.a.createElement(K,t),s.a.createElement("div",{className:u()("app-content content",{"show-overlay":!0===this.state.appOverlay}),onClick:this.handleAppOverlayClick},s.a.createElement(Te,a),s.a.createElement("div",{className:"content-wrapper"},this.props.children)),s.a.createElement(Ce,n),s.a.createElement(f,r),s.a.createElement("div",{className:"sidenav-overlay",onClick:this.handleSidebarVisibility}))}}]),a}(o.PureComponent),De=Object(v.b)((function(e){return{app:e.customizer,role:e.users.data.role}}),{changeMode:V.d,collapseSidebar:V.g,changeNavbarColor:V.e,changeNavbarType:V.f,changeFooterType:V.b,changeMenuColor:V.c,hideScrollToTop:V.i,hideNotifications:V.h})(Ie),Pe=a(105),xe=a(38),Me=function(e){var t=e.children;Object(Pe.a)(e,["children"]);return s.a.createElement("div",{className:u()("full-layout wrapper bg-full-screen-image blank-page dark-layout",{"layout-dark":xe.a.layoutDark})},s.a.createElement("div",{className:"app-content"},s.a.createElement("div",{className:"content-wrapper"},s.a.createElement("div",{className:"content-body"},s.a.createElement("div",{className:"flexbox-container"},s.a.createElement("main",{className:"main w-100"},t))))))},Fe=a(2),Re=a(83),_e=a(151),He=a(163),Ve=[{id:"projectsTab",title:"\u041f\u0440\u043e\u0435\u043a\u0442\u044b",type:"dropdown",icon:s.a.createElement(He.a,{size:16}),children:[{id:"projects",title:"\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432",type:"item",icon:s.a.createElement(O.a,{size:12}),permissions:["admin","manager","user"],navLink:"/"}]}],ze=function(e){Object(i.a)(a,e);var t=Object(c.a)(a);function a(e){var r;return Object(n.a)(this,a),(r=t.call(this,e)).openDropdown=function(e){var t=r.state.openDropdown;t.includes(e)||t.push(e),r.setState({openDropdown:t})},r.closeDropdown=function(e){var t=r.state.openDropdown;t.splice(t.indexOf(e),1),r.setState({openDropdown:t})},r.handleItemHover=function(e){r.setState({itemHover:e})},r.handleParentHover=function(e){r.setState({parentHover:e})},r.updateParentItems=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!0===t&&(r.parentItems=[]),r.parentItems.includes(e)||r.parentItems.push(e),!0===r.activeFlag&&(r.activeParentItems=r.parentItems,r.parentItems=[],r.activeFlag=!1)},r.handleActiveParent=function(e){r.setState({activeParents:e}),r.activeFlag=!1},r.renderSubMenu=function(e,t){return s.a.createElement(pe.a,{tag:"ul",className:"mt-50",onMouseEnter:function(e){return e.preventDefault()},modifiers:{setMaxHeight:{enabled:!0,fn:function(e){var t,a=window.innerHeight,n=e.instance.reference.getBoundingClientRect().top;return a-n-e.popper.height-28<1&&(t={maxHeight:a-n-25,overflowY:"auto"}),Object(Fe.a)(Object(Fe.a)({},e),{},{styles:Object(Fe.a)({},t)})}}}},e.map((function(e){var a="external-link"===e.type?"a":g.a;e.navLink&&e.navLink===r.props.activePath&&(r.activeFlag=!0,r.updateParentItems(t));var n=s.a.createElement(s.a.Fragment,{key:e.id},s.a.createElement("li",{className:u()({active:r.state.activeParents.includes(e.id)})},s.a.createElement(Z.a,{className:u()("w-100",{hover:r.state.itemHover===e.id,"has-sub":e.children,active:e.parentOf&&e.parentOf.includes(r.props.activePath)||e.navLink&&e.navLink===r.props.activePath,"has-active-child":r.state.openDropdown.includes(e.id),disabled:e.disabled}),tag:e.navLink?a:"div",to:e.filterBase?e.filterBase:e.navLink&&"item"===e.type?e.navLink:"#",href:"external-link"===e.type?e.navLink:void 0,target:e.newTab?"_blank":void 0,onMouseEnter:function(){return r.handleItemHover(e.id)},onMouseLeave:function(){return r.handleItemHover(null)}},e.children?s.a.createElement(Re.a,{className:u()("sub-menu w-100",{}),isOpen:r.state.openDropdown.includes(e.id),direction:r.state.openLeft?"left":"right",toggle:function(){return!0},onMouseEnter:function(){return r.openDropdown(e.id)},onMouseLeave:function(){return r.closeDropdown(e.id)}},s.a.createElement(be.a,{className:"d-flex justify-content-between align-items-center item-content",tag:"div",onClick:function(){return r.closeDropdown(e.id)}},s.a.createElement("div",{className:"dropdown-toggle-sub text-truncate"},s.a.createElement("span",{className:"menu-icon align-bottom mr-1"},e.icon),s.a.createElement("span",{className:"menu-title align-middle"},e.title)),s.a.createElement(R.a,{className:"has-sub-arrow align-middle ml-50",size:15})),e.children?r.renderSubMenu(e.children,e.id):null):s.a.createElement("div",{className:"item-content"},s.a.createElement("span",{className:"menu-icon align-top mr-1"},e.icon),s.a.createElement("span",{className:"menu-title align-middle"},e.title)))));return"external-link"===e.type||"item"===e.type&&e.permissions&&e.permissions.includes(r.props.currentUser)||"dropdown"===e.type||void 0===e.permissions?n:e.navLink!==r.props.activePath||e.permissions.includes(r.props.currentUser)?null:r.redirectUnauthorized()})))},r.renderDropdown=function(e){return e.map((function(e){"item"===e.type&&e.navLink&&e.navLink===r.props.activePath&&(r.activeFlag=!0,r.updateParentItems(e.id,!0));var t="external-link"===e.type?"a":g.a;return s.a.createElement("li",{className:u()("nav-item",{active:r.state.activeParents.includes(e.id),hover:r.state.parentHover===e.id}),key:e.id,ref:function(e){return r.menuDrodpown=e}},s.a.createElement("div",{className:u()("nav-item-wrapper cursor-pointer",{"single-item":"item"===e.type}),onMouseEnter:function(){r.openDropdown(e.id),r.handleParentHover(e.id)},onMouseLeave:function(){r.closeDropdown(e.id),r.handleParentHover(null)}},e.children?s.a.createElement(Re.a,{isOpen:r.state.openDropdown.includes(e.id),className:"nav-link",toggle:function(){return r.openDropdown(e.id)}},s.a.createElement(be.a,{className:"d-flex align-items-center",tag:"div"},s.a.createElement("div",{className:"dropdown-text"},s.a.createElement("span",{className:"menu-icon align-middle mr-75"},e.icon),s.a.createElement("span",{className:"menu-title align-middle"},e.title)),s.a.createElement(_e.a,{className:"ml-50 align-bottom",size:15})),r.updateParentItems(e.id,!0),e.children?r.renderSubMenu(e.children,e.id):null):s.a.createElement(t,{className:u()({"nav-link":"item"===e.type,hover:r.state.parentHover===e.id}),to:e.filterBase?e.filterBase:e.navLink&&"item"===e.type?e.navLink:"#",href:"external-link"===e.type?e.navLink:void 0,target:e.newTab?"_blank":void 0},s.a.createElement("span",{className:"menu-icon align-middle mr-75"},e.icon),s.a.createElement("span",{className:"menu-title align-middle"},e.title))))}))},r.state={activeParents:[],openDropdown:[],dropdownHeight:"auto",itemHover:null,parentHover:null,activeChildUrl:null},r.activeFlag=!1,r.parentItems=[],r.activeParentItems=[],r.redirectUnauthorized=function(){H.a.push("/login")},r}return Object(r.a)(a,[{key:"componentDidMount",value:function(){this.handleActiveParent(this.activeParentItems)}},{key:"componentDidUpdate",value:function(e){this.props.activePath!==e.activePath&&(this.setState({openDropdown:[],parentHover:null}),this.handleActiveParent(this.activeParentItems))}},{key:"render",value:function(){return s.a.createElement("div",{className:"horizontal-menu-wrapper"},s.a.createElement("div",{className:u()("header-navbar navbar-expand-sm navbar navbar-horizontal navbar-shadow",{"navbar-static":"static"===this.props.navbarType,"fixed-top":"sticky"===this.props.navbarType,"floating-nav":"floating"===this.props.navbarType||!["static","sticky","floating"].includes(this.props.navbarType)})},s.a.createElement("div",{className:"navbar-container main-menu-content"},s.a.createElement("ul",{className:"nav navbar-nav",id:"main-menu-navigation"},this.renderDropdown(Ve)))))}}]),a}(s.a.Component),Ue=Object(v.b)((function(e){return{currentUser:e.auth.login.userRole}}))(ze),We=function(e){Object(i.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(n.a)(this,a);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).state={width:window.innerWidth,sidebarState:!1,layout:e.props.app.customizer.theme,collapsedContent:!1,sidebarHidden:!1,currentLang:"en",appOverlay:!1,customizer:!1,isTouropen:!1,currRoute:e.props.location.pathname,menuOpen:xe.a.menuOpen},e.updateWidth=function(){e.setState((function(e){return{width:window.innerWidth}}))},e.updateScroll=function(){e.setState({scroll:window.pageYOffset})},e.handleCustomizer=function(t){e.setState({customizer:t})},e.handleRouteChange=function(){"/pages/profile"===e.props.location.pathname?e.setState({collapsedContent:!0}):e.setState({sidebarState:!1,collapsedContent:!1})},e.toggleSidebarMenu=function(){e.setState({sidebarState:!e.state.sidebarState,collapsedContent:!e.state.collapsedContent})},e.sidebarMenuHover=function(){e.setState({sidebarState:!e.state.sidebarState})},e.handleSidebarVisibility=function(){window.addEventListener("resize",(function(){e.state.sidebarHidden&&e.setState({sidebarHidden:!e.state.sidebarHidden})})),e.setState({sidebarHidden:!e.state.sidebarHidden})},e.handleCurrentLanguage=function(t){e.setState({currentLang:t})},e.handleAppOverlay=function(t){t.length>0?e.setState({appOverlay:!0}):(t.length>0||""===t)&&e.setState({appOverlay:!1})},e.handleAppOverlayClick=function(){e.setState({appOverlay:!1})},e}return Object(r.a)(a,[{key:"componentDidMount",value:function(){"undefined"!==window&&(window.addEventListener("resize",this.updateWidth,!1),window.addEventListener("scroll",this.updateScroll,!1)),"/pages/profile"===this.props.location.pathname&&this.setState({sidebarState:!0,collapsedContent:!0});var e=this.props.app.customizer.theme;return"dark"===e?document.body.classList.add("dark-layout"):"semi-dark"===e?document.body.classList.add("semi-dark-layout"):null}},{key:"componentDidUpdate",value:function(){this.state.currRoute!==this.props.location.pathname&&(this.handleRouteChange(),this.setState({currRoute:this.props.location.pathname}));var e=this.props.app.customizer.theme;if("dark"===e)document.body.classList.remove("semi-dark-layout"),document.body.classList.add("dark-layout");else{if("semi-dark"!==e)return document.body.classList.remove("dark-layout","semi-dark-layout");document.body.classList.remove("dark-layout"),document.body.classList.add("semi-dark-layout")}}},{key:"render",value:function(){var e=this.props.app.customizer;return s.a.createElement("div",{className:u()("wrapper horizontal-layout theme-".concat(e.menuTheme),{"menu-collapsed":!0===this.state.collapsedContent&&this.state.width>1200,"fixed-footer":"sticky"===e.footerType,"navbar-static":"static"===e.navbarType,"navbar-sticky":"sticky"===e.navbarType,"navbar-floating":"floating"===e.navbarType||!["sticky","static","sticky","floating","hidden"].includes(e.navbarType),"navbar-hidden":"hidden"===e.navbarType,"theme-primary":!["primary","success","danger","info","warning","dark"].includes(e.menuTheme)})},s.a.createElement(Ue,{toggleSidebarMenu:this.toggleSidebarMenu,sidebarState:this.state.sidebarState,sidebarHover:this.sidebarMenuHover,sidebarVisibility:this.handleSidebarVisibility,visibilityState:this.state.sidebarHidden,activePath:this.props.match.path,currentLang:this.state.currentLang,activeTheme:e.menuTheme,collapsed:this.state.collapsedContent,menuOpen:this.state.menuOpen,navbarType:e.navbarType}),s.a.createElement("div",{className:u()("app-content content",{"show-overlay":!0===this.state.appOverlay}),onClick:this.handleAppOverlayClick},s.a.createElement(Te,{horizontal:!0,scrolling:this.state.scroll>50,toggleSidebarMenu:this.toggleSidebarMenu,sidebarState:this.state.sidebarState,sidebarVisibility:this.handleSidebarVisibility,currentLang:this.state.currentLang,changeCurrentLang:this.handleCurrentLanguage,handleAppOverlay:this.handleAppOverlay,appOverlayState:this.state.appOverlay,navbarColor:e.navbarColor,navbarType:e.navbarType}),s.a.createElement("div",{className:"content-wrapper"},this.props.children)),s.a.createElement(Ce,{footerType:e.footerType,hideScrollToTop:e.hideScrollToTop}),s.a.createElement(f,{scrollToTop:e.hideScrollToTop,notifications:e.notifications,activeNavbar:e.navbarColor,activeMode:e.theme,navbarType:e.navbarType,footerType:e.footerType,menuTheme:e.menuTheme,customizerState:this.state.customizer,handleCustomizer:this.handleCustomizer,changeNavbar:this.props.changeNavbarColor,changeNavbarType:this.props.changeNavbarType,changeFooterType:this.props.changeFooterType,changeMenuTheme:this.props.changeMenuColor,hideScrollToTop:this.props.hideScrollToTop,hideNotifications:this.props.hideNotifications,changeMode:this.props.changeMode}),s.a.createElement("div",{className:"sidenav-overlay",onClick:this.handleSidebarVisibility}))}}]),a}(o.PureComponent),Ge={vertical:De,full:Me,horizontal:Object(v.b)((function(e){return{app:e.customizer,role:e.users.data.role}}),{changeNavbarColor:V.e,changeNavbarType:V.f,changeFooterType:V.b,changeMenuColor:V.c,hideScrollToTop:V.i,hideNotifications:V.h,changeMode:V.d})(We)},Ke=s.a.createContext(),Be=function(e){Object(i.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(n.a)(this,a);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).state={activeLayout:xe.a.layout,width:window.innerWidth,lastLayout:null,direction:xe.a.direction},e.updateWidth=function(){e.setState({width:window.innerWidth})},e.handleWindowResize=function(){e.updateWidth(),"horizontal"===e.state.activeLayout&&e.state.width<=1199&&e.setState({activeLayout:"vertical",lastLayout:"horizontal"}),"horizontal"===e.state.lastLayout&&e.state.width>=1199&&e.setState({activeLayout:"horizontal",lastLayout:"vertical"})},e.componentDidMount=function(){"undefined"!==window&&window.addEventListener("resize",e.handleWindowResize),e.handleDirUpdate(),"horizontal"===e.state.activeLayout&&e.state.width<=1199?e.setState({activeLayout:"vertical"}):"horizontal"===xe.a.layout&&e.state.width>=1200?e.setState({activeLayout:"horizontal"}):e.setState({activeLayout:"vertical"})},e.handleDirUpdate=function(){"rtl"===e.state.direction?document.getElementsByTagName("html")[0].setAttribute("dir","rtl"):document.getElementsByTagName("html")[0].setAttribute("dir","ltr")},e}return Object(r.a)(a,[{key:"componentDidUpdate",value:function(){this.handleDirUpdate()}},{key:"render",value:function(){var e=this,t=this.props.children;return s.a.createElement(Ke.Provider,{value:{state:this.state,fullLayout:Ge.full,VerticalLayout:Ge.vertical,horizontalLayout:Ge.horizontal,switchLayout:function(t){e.setState({activeLayout:t})},switchDir:function(t){e.setState({direction:t})}}},t)}}]),a}(s.a.Component)},108:function(e,t,a){"use strict";a.d(t,"c",(function(){return g})),a.d(t,"a",(function(){return y})),a.d(t,"b",(function(){return O})),a.d(t,"d",(function(){return E}));var n=a(2),r=a(28),i=a(6),c=a(7),o=a(12),s=a(13),l=a(101),u=a(50),d=a(11),p=function(e){Object(o.a)(a,e);var t=Object(s.a)(a);function a(){return Object(i.a)(this,a),t.apply(this,arguments)}return Object(c.a)(a,null,[{key:"SwitchToAnotherUser",value:function(e){var t=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=new u.a;return new Promise((function(r,i){return t.request({auth:!0}).get("".concat(t.entity,"/").concat(e)).then((function(t){n.setWrapper(t,a).then((function(){return m(e,t.data),r(t.data)})).catch((function(e){return i(t.data)}))})).catch((function(e){i(console.log("getById "+t.entity,e))}))}))}},{key:"entity",get:function(){return"users"}}]),a}(l.a);function m(e,t){var a;a=Object(d.b)().me_id===e?null:void 0===Object(d.b)().me_id||null===Object(d.b)().me_id?Object(d.c)():Object(d.b)().me_id,localStorage.setItem("userData",JSON.stringify(Object(n.a)(Object(n.a)({},t.data.user),{},{verify_id:t.data.user.id,me_id:a,role:t.data.user.role.name})))}var b=a(34),h=a(21),f=a(206),v=a(71),g=function(e){return function(t){t(Object(r.e)("users-list")),p.index(e).then((function(e){t({type:b.a,payload:e.data.users})})).finally((function(){t(Object(r.g)("users-list"))}))}},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(a){null!==e&&(a(Object(r.e)("users-list")),p.SwitchToAnotherUser(e).then((function(t){var r;a({type:h.a}),r=Object(d.b)().me_id===e?null:void 0===Object(d.b)().me_id||null===Object(d.b)().me_id?Object(d.c)():Object(d.b)().me_id,a({type:b.c,payload:Object(n.a)(Object(n.a)({},t.data.user),{},{verify_id:t.data.user.id,me_id:r,role:t.data.user.role.name})}),f.a.getWindow().location.reload()})).catch((function(){t&&a(Object(v.b)())})).finally((function(){a(Object(r.g)("users-list"))})))}},O=function(e){return function(t){return t({type:b.c,payload:e})}},E=function(e){return{type:b.b,payload:e}}},11:function(e,t,a){"use strict";a.d(t,"e",(function(){return l})),a.d(t,"g",(function(){return u})),a.d(t,"f",(function(){return d})),a.d(t,"h",(function(){return p})),a.d(t,"i",(function(){return m})),a.d(t,"d",(function(){return h})),a.d(t,"a",(function(){return f})),a.d(t,"c",(function(){return v})),a.d(t,"b",(function(){return g}));var n=a(2),r=a(6),i=a(7),c=a(50),o=a(70),s=function(){function e(t,a){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Object(r.a)(this,e),this.data=a,this.entity=t+"?verify_id="+v(),this.auth=n,this.setToken=o,this.setData=i,this.wrapper=new c.a}return Object(i.a)(e,[{key:"init",value:function(){var e=this;return new Promise((function(t,a){e.request({auth:e.auth}).post(e.entity,e.data,{headers:{accept:"application/x.arimo.v1+json"}}).then((function(r){e.wrapper.setWrapper(r).then((function(){return!0===e.setData&&function(e){localStorage.setItem("userData",JSON.stringify(Object(n.a)(Object(n.a)({},e.data.me),{},{verify_id:e.data.me.id,me_id:null,role:e.data.me.role.name})))}(r.data),!0===e.setToken&&function(e){localStorage.setItem("refreshToken",e.data.token),localStorage.setItem("accessToken",e.data.token),localStorage.setItem("expires_in",(t=e.data.expires_in,t+Math.floor((new Date).getTime()/1e3)));var t}(r.data),t(r.data.data)})).catch((function(e){return a(e)}))})).catch((function(e){a(e)}))}))}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{auth:!1,setData:this.setData};return new o.b(e)}}]),e}();function l(e){return new s("auth/login",e,!1,!0,!0).init()}function u(e){return new s("auth/register",e,!1,!0,!0).init()}function d(){return new s("auth/logout",{token:b()}).init()}function p(){return new s("auth/refresh",{token:b()},!1,!1,!0).init()}function m(){localStorage.removeItem("refreshToken"),localStorage.removeItem("accessToken"),localStorage.removeItem("expires_in"),localStorage.removeItem("verify_id"),localStorage.removeItem("role"),localStorage.removeItem("my_id"),localStorage.removeItem("userData")}function b(){return localStorage.getItem("refreshToken")||""}function h(){return localStorage.getItem("expires_in")-1800<=Math.floor((new Date).getTime()/1e3)}function f(){return localStorage.getItem("accessToken")||""}function v(){try{return JSON.parse(localStorage.getItem("userData")).verify_id}catch(e){return""}}function g(){try{return JSON.parse(localStorage.getItem("userData"))||{}}catch(e){return{}}}},110:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var n="SET_TAGS"},195:function(e,t,a){e.exports=a.p+"static/media/logo-arimo.2f1b4217.svg"},20:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return r})),a.d(t,"g",(function(){return i})),a.d(t,"e",(function(){return c})),a.d(t,"f",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return l})),a.d(t,"i",(function(){return u})),a.d(t,"h",(function(){return d}));var n=function(e){return function(t){return t({type:"CHANGE_CONFIG",config:e})}},r=function(e){return function(t){return t({type:"CHANGE_MODE",mode:e})}},i=function(e){return function(t){return t({type:"COLLAPSE_SIDEBAR",value:e})}},c=function(e){return function(t){return t({type:"CHANGE_NAVBAR_COLOR",color:e})}},o=function(e){return function(t){return t({type:"CHANGE_NAVBAR_TYPE",style:e})}},s=function(e){return function(t){return t({type:"CHANGE_FOOTER_TYPE",style:e})}},l=function(e){return function(t){return t({type:"CHANGE_MENU_COLOR",style:e})}},u=function(e){return function(t){return t({type:"HIDE_SCROLL_TO_TOP",value:e})}},d=function(e){return function(t){return t({type:"HIDE_NOTIFICATIONS",value:e})}}},203:function(e,t){e.exports=""},205:function(e,t){e.exports=""},21:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"e",(function(){return r})),a.d(t,"d",(function(){return i})),a.d(t,"b",(function(){return c})),a.d(t,"a",(function(){return o})),a.d(t,"f",(function(){return s}));var n="SET_NOTIFICATION",r="UNSET_NOTIFICATION",i="SET_SPINNER",c="SET_HELPER",o="RESET_STATE",s="UNSET_SPINNER"},210:function(e,t,a){},212:function(e,t,a){e.exports=a(298)},22:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(26),r=Object(n.a)()},222:function(e,t,a){},23:function(e,t,a){"use strict";a.d(t,"h",(function(){return n})),a.d(t,"l",(function(){return r})),a.d(t,"i",(function(){return i})),a.d(t,"m",(function(){return c})),a.d(t,"a",(function(){return o})),a.d(t,"j",(function(){return s})),a.d(t,"k",(function(){return l})),a.d(t,"c",(function(){return u})),a.d(t,"e",(function(){return d})),a.d(t,"f",(function(){return p})),a.d(t,"g",(function(){return m})),a.d(t,"b",(function(){return b})),a.d(t,"d",(function(){return h}));var n="SET_RELEASE_INFO",r="SET_RELEASE_INFO_TYPES",i="SET_RELEASE_INFO_FIELD",c="SET_RELEASE_INFO_VALUE",o="CLEAR_RELEASE_INFO",s="SET_RELEASE_INFO_GENRES",l="SET_RELEASE_INFO_SUBGENRES",u="RELEASE_FORM_ADD_TRACK_ELEMENT",d="RELEASE_FORM_DELETE_TRACK_ELEMENT",p="RELEASE_FORM_SET_TRACK_ELEMENT",m="RELEASE_FORM_SET_TRACK_ID_ELEMENT",b="RELEASE_FORM_ADD_TRACK",h="RELEASE_FORM_DELETE_TRACK"},25:function(e,t,a){"use strict";a.d(t,"e",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"d",(function(){return i})),a.d(t,"j",(function(){return c})),a.d(t,"m",(function(){return o})),a.d(t,"a",(function(){return s})),a.d(t,"f",(function(){return l})),a.d(t,"i",(function(){return u})),a.d(t,"l",(function(){return d})),a.d(t,"c",(function(){return p})),a.d(t,"g",(function(){return m})),a.d(t,"h",(function(){return b})),a.d(t,"k",(function(){return h}));var n="SET_ANALYTICS_SELECTED_PROJECT",r="CLEAR_ALL_ANALYTICS_STATE",i="SET_ANALYTICS_REQ_PARAMS",c="SET_SELECTED_COUNT_DAY",o="SET_STATISTICS_STATUS",s="ANALYTICS_CLEAR_DATA",l="SET_ANALYTICS_STATUS",u="SET_PERCENT_DATA",d="SET_STATISTICS",p="SET_ANALYTICS",m="SET_FOLLOWERS",b="SET_GROUP_ID",h="SET_SPOTIFY"},28:function(e,t,a){"use strict";a.d(t,"d",(function(){return r})),a.d(t,"f",(function(){return i})),a.d(t,"e",(function(){return c})),a.d(t,"g",(function(){return o})),a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return l})),a.d(t,"c",(function(){return u}));var n=a(21),r=function(e,t){return{type:n.c,payload:{message:e,status:t}}},i=function(e){return{type:n.e,payload:{id:e}}},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:n.d,payload:{id:e}}},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:n.f,payload:{id:e}}},s=function(e,t){return{type:e,payload:t}},l=function(e,t,a){return{type:e,field:t,payload:a}},u=function(e,t,a,n){return{type:e,field:t,payload:a,id:n}}},297:function(e,t,a){},298:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),i=a(29),c=a.n(i),o=a(17),s=a(103);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var l=a(64),u=a(6),d=a(7),p=a(12),m=a(13),b=a(205),h=a.n(b),f=(a(210),function(e){Object(p.a)(a,e);var t=Object(m.a)(a);function a(){return Object(u.a)(this,a),t.apply(this,arguments)}return Object(d.a)(a,[{key:"render",value:function(){return r.a.createElement("div",{className:"fallback-spinner vh-100"},r.a.createElement("img",{className:"fallback-logo",src:h.a,alt:"logo"}),r.a.createElement("div",{className:"loading"},r.a.createElement("div",{className:"effect-1 effects"}),r.a.createElement("div",{className:"effect-2 effects"}),r.a.createElement("div",{className:"effect-3 effects"})))}}]),a}(r.a.Component)),v=(a(297),Object(n.lazy)((function(){return Promise.all([a.e(7),a.e(8)]).then(a.bind(null,817))})));c.a.render(r.a.createElement(o.a,{store:l.a},r.a.createElement(n.Suspense,{fallback:r.a.createElement(f,null)},r.a.createElement(s.b,null,r.a.createElement(v,null)))),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))},32:function(e,t,a){"use strict";a.d(t,"h",(function(){return n})),a.d(t,"f",(function(){return r})),a.d(t,"k",(function(){return i})),a.d(t,"g",(function(){return c})),a.d(t,"c",(function(){return o})),a.d(t,"e",(function(){return s})),a.d(t,"b",(function(){return l})),a.d(t,"i",(function(){return u})),a.d(t,"d",(function(){return d})),a.d(t,"a",(function(){return p})),a.d(t,"j",(function(){return m}));var n="SET_EVENTS",r="EVENTS_TYPES",i="SIDEBAR_HEIGHT",c="EVENT_MODAL_FIELD",o="CLEAR_EVENTS_MODAL",s="EVENTS_MODAL_STATUS",l="CLEAR_EVENTS_FILTER",u="SET_EVENTS_PAGINATION",d="EVENTS_MODAL_LOCATIONS",p="CLEAR_ALL_EVENTS_STATE",m="SET_EVENT_FILTER_CHECKED"},33:function(e,t,a){"use strict";a.d(t,"i",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"e",(function(){return i})),a.d(t,"h",(function(){return c})),a.d(t,"f",(function(){return o})),a.d(t,"d",(function(){return s})),a.d(t,"j",(function(){return l})),a.d(t,"g",(function(){return u})),a.d(t,"c",(function(){return d})),a.d(t,"a",(function(){return p})),a.d(t,"k",(function(){return m}));var n="SET_PROJECT_REQUEST_PARAMS",r="CLEAR_PROJECT_ALL_STATE",i="SET_OWNER_PROJECT_LIST",c="SET_PROJECT_LIST",o="SET_PROJECT_DATA",s="SET_MODAL_STATUS",l="SET_REQUEST_TYPE",u="SET_PROJECT_ID",d="SET_MODAL_DATA",p="CLEAR_FORM",m="SET_SPOTIFY_LIST"},34:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return i}));var n="SET_USERS_LIST",r="SET_USERS_REQUEST_PARAMS",i="SET_USER_DATA"},35:function(e,t,a){"use strict";a.d(t,"g",(function(){return n})),a.d(t,"f",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"h",(function(){return c})),a.d(t,"i",(function(){return o})),a.d(t,"d",(function(){return s})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return u})),a.d(t,"e",(function(){return d}));var n="SET_RELEASES",r="RELEASE_SIDEBAR_HEIGHT",i="RELEASES_MODAL_STATUS",c="SET_RELEASES_PAGINATION",o="SET_RELEASE_FILTER_CHECKED",s="RELEASES_TYPES",l="CLEAR_RELEASES_FILTER",u="CLEAR_RELEASES_MODAL",d="RELEASE_MODAL_FIELD"},37:function(e,t,a){"use strict";a.d(t,"g",(function(){return n})),a.d(t,"f",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"h",(function(){return c})),a.d(t,"i",(function(){return o})),a.d(t,"d",(function(){return s})),a.d(t,"e",(function(){return l})),a.d(t,"c",(function(){return u})),a.d(t,"a",(function(){return d}));var n="SET_SCHEDULES",r="SET_SCHEDULE",i="CLEAR_SCHEDULE",c="SET_SCHEDULE_FIELD",o="SET_SCHEDULE_VALUE",s="SET_SCHEDULABLE_FIELD",l="SET_SCHEDULABLE_PASSENGERS",u="DELETE_SCHEDULABLE_PASSENGERS",d="ADD_SCHEDULABLE_PASSENGERS"},38:function(e,t,a){"use strict";t.a={layout:"vertical",theme:"dark",sidebarCollapsed:!1,navbarColor:"default",navbarType:"floating",footerType:"static",disableCustomizer:!1,hideScrollToTop:!1,menuTheme:"primary",direction:"ltr",notifications:!1}},48:function(e,t,a){"use strict";a.d(t,"i",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return c})),a.d(t,"g",(function(){return o})),a.d(t,"h",(function(){return s})),a.d(t,"f",(function(){return l})),a.d(t,"j",(function(){return u})),a.d(t,"e",(function(){return d})),a.d(t,"d",(function(){return p})),a.d(t,"k",(function(){return m})),a.d(t,"l",(function(){return b}));var n=function(e,t){var a=String(e)||"",n=t?parseInt(t):a.length+1;return a.length>n+3?a.trim().substr(0,n)+"...":e},r=function(e,t){if(e)return a(225)(new Date(e),t||"dd.mm.yyyy")},i=function(e){return Number.isInteger(e)&&e.toString().length>6?(e/1e6).toFixed(1)+"M":parseInt(e).toLocaleString("ru")},c=function(e,t){return!(!e||!t)&&JSON.stringify(e)===JSON.stringify(t)},o=function(e){var t=new Date;return t.setDate(t.getDate()-parseInt(e)),{to:u(),from:u(t)}},s=function(e,t){var a=d(t);return a.setDate(a.getDate()-parseInt(e)),{from:u(a)}},l=function(e,t){var a=parseInt(e),n=parseInt(t);return isNaN(a)||isNaN(n)?0:(a/n*100).toFixed(2)},u=function(e){return e?parseInt(new Date(e).getTime()/1e3):parseInt((new Date).getTime()/1e3)},d=function(e){return void 0===e?"":e?new Date(1e3*e):(console.error("Empty date"),"")},p=function(e){var t=e;if(e&&e.geometry){var a=e.properties;t={name:a.name,description:a.description,coordinates:e.geometry.coordinates,boundedBy:a.boundedBy,url:a.CompanyMetaData&&a.CompanyMetaData.url?a.CompanyMetaData.url:"",phone:a.CompanyMetaData&&a.CompanyMetaData.Phones?a.CompanyMetaData.Phones[0].formatted:""}}return t},m=function(){return JSON.parse(localStorage.getItem("userData"))||{}},b=function(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())}},49:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"d",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"e",(function(){return c})),a.d(t,"a",(function(){return o}));var n="SET_EVENT_INFO",r="SET_EVENT_INFO_TYPES",i="SET_EVENT_INFO_FIELD",c="SET_EVENT_INFO_VALUE",o="CLEAR_EVENT_INFO"},50:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(6),r=a(7),i=a(28),c=(a(0),a(64)),o=a(22),s=a(11),l=function(){function e(){Object(n.a)(this,e)}return Object(r.a)(e,[{key:"setWrapper",value:function(e){var t=this;return new Promise((function(a,n){if(!e.data.error)return a(e);switch(e.data.error.status_code){case 401:return t.showErrorMessage(e.data.error.message),Object(s.i)(),o.a.push("/login"),n(401,e);default:return t.showErrorMessage(e.data.error.message),n(null,e)}}))}},{key:"showErrorMessage",value:function(e){c.a.dispatch(Object(i.d)(e,"error"))}},{key:"showSuccessMessage",value:function(e){c.a.dispatch(Object(i.d)(e,"success"))}}]),e}()},55:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"d",(function(){return i})),a.d(t,"e",(function(){return c})),a.d(t,"b",(function(){return o}));var n="SET_CONTACTS",r="SET_CONTACTS_VALUE",i="SET_CONTACT_FIELD",c="UNSET_CONTACT_FIELD",o="SET_CONTACTS_DATA_VALUE"},56:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"d",(function(){return c}));var n="SET_TASK_FIELD",r="SET_TASKS_FIELD",i="SET_TASKS_VALUE",c="SET_TASK_FILE"},59:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"d",(function(){return c}));var n="SET_EVENT_CONTACT_FIELD",r="SET_EVENT_CONTACTS_FIELD",i="SET_EVENT_CONTACTS_VALUE",c="UNSET_EVENT_CONTACT_FIELD"},64:function(e,t,a){"use strict";a.d(t,"a",(function(){return we}));var n=a(19),r=a(201),i=a.n(r),c=a(202),o=a(21),s=a(2),l=a(25),u=a(48),d={analyticsRequestParams:Object(s.a)({fields:"analytics.likes,analytics.reposts,analytics.comments,analytics.views ",limit:30,new:!0},Object(u.g)(30)),statisticsRequestParams:{limit:30,fields:"statistics.key, statistics.value"},followersRequestParams:Object(s.a)({limit:30},Object(u.g)(30)),analyticsStatus:!1,statisticsStatus:!1,selectedCountDay:{value:30,label:"30 \u0434\u043d\u0435\u0439"},statistics:{age:[],city:[],country:[],interests:[],occupation:[],relation:[],sex:[]},followers:{date:[],followers:[],newFollowers:"",unsubscribed:""},spotify:{id:"",name:"",related:[],tracks:[],img:"",popularity:""},analytics:"",requestParams:"",percentData:"",group_id:"",selectedProject:""},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l.c:return Object(s.a)(Object(s.a)({},e),{},{analytics:Object(s.a)({},t.payload)});case l.d:return Object(s.a)(Object(s.a)({},e),{},{requestParams:Object(s.a)(Object(s.a)({},e.requestParams),t.payload),analyticsRequestParams:Object(s.a)(Object(s.a)({},e.analyticsRequestParams),t.payload),statisticsRequestParams:Object(s.a)(Object(s.a)({},e.statisticsRequestParams),t.payload),followersRequestParams:Object(s.a)(Object(s.a)({},e.followersRequestParams),t.payload)});case l.j:return Object(s.a)(Object(s.a)({},e),{},{selectedCountDay:Object(s.a)({},t.payload)});case l.i:return Object(s.a)(Object(s.a)({},e),{},{percentData:t.payload});case l.f:return Object(s.a)(Object(s.a)({},e),{},{analyticsStatus:t.payload});case l.m:return Object(s.a)(Object(s.a)({},e),{},{statisticsStatus:t.payload});case l.l:return Object(s.a)(Object(s.a)({},e),{},{statistics:Object(s.a)(Object(s.a)({},e.statistics),t.payload)});case l.g:return Object(s.a)(Object(s.a)({},e),{},{followers:Object(s.a)(Object(s.a)({},e.followers),t.payload)});case l.k:return Object(s.a)(Object(s.a)({},e),{},{spotify:Object(s.a)(Object(s.a)({},e.spotify),t.payload)});case l.a:return Object(s.a)(Object(s.a)({},e),{},{group_id:"",statistics:{age:[],city:[],country:[],interests:[],occupation:[],relation:[],sex:[]},followers:{date:[],followers:[],newFollowers:"",unsubscribed:""},spotify:{id:"",name:"",related:[],tracks:[],img:"",popularity:""},analytics:"",percentData:""});case l.h:return Object(s.a)(Object(s.a)({},e),{},{group_id:t.payload});case l.e:return Object(s.a)(Object(s.a)({},e),{},{selectedProject:t.payload});case l.b:return Object(s.a)(Object(s.a)({},e),{},{group_id:"",analyticsRequestParams:Object(s.a)({fields:"analytics.likes,analytics.reposts,analytics.comments,analytics.views ",limit:30,new:!0},Object(u.g)(30)),statisticsRequestParams:{limit:30,fields:"statistics.key, statistics.value"},followersRequestParams:Object(s.a)({limit:30},Object(u.g)(30)),analyticsStatus:!1,statisticsStatus:!1,selectedCountDay:{value:30,label:"30 \u0434\u043d\u0435\u0439"},statistics:{age:[],city:[],country:[],interests:[],occupation:[],relation:[],sex:[]},followers:{date:[],followers:[],newFollowers:"",unsubscribed:""},spotify:{id:"",name:"",related:[],tracks:[],img:"",popularity:""},analytics:"",requestParams:"",percentData:"",selectedProject:""});default:return e}},m=a(8),b=a(55),h={contact:{name:"",phone:"",email:"",type:{id:null,name:"",data:{}},data:[]},types:[],contacts:[],reqParams:{include:"type",orderBy:"created_at",type:-1,status:0,name:"",email:""},meta:{pagination:{}},params:{isOpenModal:!1,contact_id:null}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case b.a:return Object(s.a)(Object(s.a)({},e),{},{contacts:Object(s.a)({},t.payload)});case b.c:var a=[].concat(e.contacts);return a[t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{contacts:a});case b.b:var n=[].concat(e.contact.data);return n[t.id].value=t.payload,Object(s.a)(Object(s.a)({},e),{},{contact:Object(s.a)(Object(s.a)({},e.contact),{},{data:n})});case b.d:return Object(s.a)(Object(s.a)({},e),{},Object(m.a)({},t.field,t.payload));case b.e:return Object(s.a)(Object(s.a)({},e),{},{contact:{name:"",phone:"",email:"",type:{id:null,name:"",data:{}},data:[]}});default:return Object(s.a)({},e)}},v=a(33),g={list:[],meta:{},ownerProjectList:[],ownerProjectMeta:{},requestParams:{page:1,includes:"group,spotify,owner",fields:"group.link,group.id",orderBy:"-id",limit:9},modalData:{name:"",link:"",spotify:{artistId:null,name:""},description:""},spotify_list:[],modal:!1,requestType:"update",projectId:""},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case v.h:return Object(s.a)(Object(s.a)({},e),{},{list:t.payload.data,meta:t.payload.meta});case v.e:return Object(s.a)(Object(s.a)({},e),{},{ownerProjectList:t.payload.data,ownerProjectMeta:t.payload.meta});case v.i:return Object(s.a)(Object(s.a)({},e),{},{requestParams:Object(s.a)(Object(s.a)({},e.requestParams),t.payload)});case v.d:return Object(s.a)(Object(s.a)({},e),{},{modal:t.payload});case v.k:return Object(s.a)(Object(s.a)({},e),{},{spotify_list:t.payload});case v.j:return Object(s.a)(Object(s.a)({},e),{},{requestType:t.payload});case v.f:return Object(s.a)(Object(s.a)({},e),{},{modalData:t.payload});case v.c:return Object(s.a)(Object(s.a)({},e),{},{modalData:Object(s.a)(Object(s.a)({},e.modalData),t.payload)});case v.g:return Object(s.a)(Object(s.a)({},e),{},{projectId:t.payload});case v.a:return Object(s.a)(Object(s.a)({},e),{},{modalData:{name:"",link:"",description:"",spotify:{artistId:null,name:""}}});case v.b:return Object(s.a)(Object(s.a)({},e),{},{list:[],meta:{},ownerProjectList:[],ownerProjectMeta:{},requestParams:{page:1,includes:"group,spotify,owner",fields:"group.link,group.id",orderBy:"-id",limit:9},modalData:{name:"",link:"",spotify:{artistId:null,name:""},description:""},spotify_list:[],modal:!1,requestType:"update",projectId:""});default:return e}},O=a(38),E=Object(s.a)({},O.a),j={},S=function(e,t){(j=JSON.parse(localStorage.getItem("themeConfig")))?j[e]=t:(j={})[e]=t,localStorage.setItem("themeConfig",JSON.stringify(j))},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CHANGE_CONFIG":return Object(s.a)(Object(s.a)({},e),{},{theme:t.config.theme,sidebarCollapsed:t.config.sidebarCollapsed,navbarColor:t.config.navbarColor,navbarType:t.config.navbarType,footerType:t.config.footerType,menuTheme:t.config.menuTheme,hideScrollToTop:t.config.hideScrollToTop,notifications:t.config.notifications});case"CHANGE_MODE":return S("theme",t.mode),Object(s.a)(Object(s.a)({},e),{},{theme:t.mode});case"COLLAPSE_SIDEBAR":return S("sidebarCollapsed",t.value),Object(s.a)(Object(s.a)({},e),{},{sidebarCollapsed:t.value});case"CHANGE_NAVBAR_COLOR":return S("navbarColor",t.color),Object(s.a)(Object(s.a)({},e),{},{navbarColor:t.color});case"CHANGE_NAVBAR_TYPE":return S("navbarType",t.style),Object(s.a)(Object(s.a)({},e),{},{navbarType:t.style});case"CHANGE_FOOTER_TYPE":return S("footerType",t.style),Object(s.a)(Object(s.a)({},e),{},{footerType:t.style});case"CHANGE_MENU_COLOR":return S("menuTheme",t.style),Object(s.a)(Object(s.a)({},e),{},{menuTheme:t.style});case"HIDE_SCROLL_TO_TOP":return S("hideScrollToTop",t.value),Object(s.a)(Object(s.a)({},e),{},{hideScrollToTop:t.value});case"HIDE_NOTIFICATIONS":return S("notifications",t.value),Object(s.a)(Object(s.a)({},e),{},{notifications:t.value});default:return e}},A=Object(n.c)({customizer:T}),N=a(39),k={notifications:[],spinner:[],verify_id:null},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.c:var a=Object(N.a)(e.notifications);return a.push({id:Math.random().toString(36).substring(7),message:t.payload.message,status:t.payload.status}),Object(s.a)(Object(s.a)({},e),{},{notifications:a});case o.e:var n=Object(N.a)(e.notifications).filter((function(e){return!(e.id===t.payload.id)}));return Object(s.a)(Object(s.a)({},e),{},{notifications:n});case o.d:var r=Object(N.a)(e.spinner);return r.push(t.payload.id),Object(s.a)(Object(s.a)({},e),{},{spinner:r});case o.f:var i=Object(N.a)(e.spinner),c=e.spinner.indexOf(t.payload.id);return-1!==c&&i.splice(c,1),Object(s.a)(Object(s.a)({},e),{},{spinner:i});case o.b:return Object(s.a)(Object(s.a)({},e),{},Object(m.a)({},t.field,t.payload));default:return e}},L=a(32),C={modalData:{project_id:"",name:"",type_id:"",locations:"",dateStart:"",dateEnd:"",timeStart:"",timeEnd:""},userFilterData:{includes:"tags,location",fields:"type.name,tags.name,tags.color,tags.id,location.name",orderBy:"id",limit:8,page:1,projects:"",types:"",contacts:"",tags:"",search:"",from:"",to:""},locationsData:"",modal:!1,eventsTypes:{data:[],meta:{}},earningTypes:[{value:0,label:"\u0414\u0440\u0443\u0433\u043e\u0435",key:""},{value:1,label:"\u041f\u0440\u043e\u0446\u0435\u043d\u0442",key:"percent"},{value:2,label:"\u0413\u043e\u043d\u043e\u0440\u0430\u0440",key:"guarantee"}],events:{},sidebarHeight:""},I=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case L.e:return Object(s.a)(Object(s.a)({},t),{},{modal:a.payload});case L.d:return Object(s.a)(Object(s.a)({},t),{},{locationsData:a.payload});case L.g:return Object(s.a)(Object(s.a)({},t),{},{modalData:Object(s.a)(Object(s.a)({},t.modalData),{},Object(m.a)({},a.field,a.payload))});case L.f:return Object(s.a)(Object(s.a)({},t),{},{eventsTypes:Object(s.a)({},a.payload)});case L.c:return Object(s.a)(Object(s.a)({},t),{},{modalData:{project_id:"",name:"",type_id:"",location_id:"",dateStart:"",dateEnd:"",timeStart:"",timeEnd:""},locationsData:""});case L.j:return Object(s.a)(Object(s.a)({},t),{},{userFilterData:Object(s.a)(Object(s.a)({},t.userFilterData),{},(e={},Object(m.a)(e,a.field,a.payload),Object(m.a)(e,"page",1),e))});case L.i:return Object(s.a)(Object(s.a)({},t),{},{userFilterData:Object(s.a)(Object(s.a)({},t.userFilterData),{},{page:a.payload})});case L.h:return Object(s.a)(Object(s.a)({},t),{},{events:Object(s.a)({},a.payload)});case L.b:return Object(s.a)(Object(s.a)({},t),{},{userFilterData:{includes:"tags,location",fields:"type.name,tags.name,tags.color,tags.id,location.name",orderBy:"id",limit:8,page:1,projects:"",types:"",contacts:"",tags:"",search:"",from:"",to:""}});case L.k:return Object(s.a)(Object(s.a)({},t),{},{sidebarHeight:a.payload});case L.a:return Object(s.a)(Object(s.a)({},t),{},{modalData:{project_id:"",name:"",type_id:"",locations:"",dateStart:"",dateEnd:"",timeStart:"",timeEnd:""},userFilterData:{includes:"tags,location",fields:"type.name,tags.name,tags.color,tags.id,location.name",orderBy:"id",limit:8,page:1,projects:"",types:"",contacts:"",tags:"",search:"",from:"",to:""},locationsData:"",modal:!1,eventsTypes:{data:[],meta:{}},events:{},sidebarHeight:""});default:return t}},D={suggestions:[],isLoading:!1,value:"",starred:[],noSuggestions:!1,extraStarred:[]},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"MAYBE_UPDATE_SUGGESTIONS":return Object(s.a)(Object(s.a)({},e),{},{suggestions:t.suggestions,isLoading:!1});case"UPDATE_STARRED":var a=e.starred.map((function(e){return e.id})),n=e.extraStarred.map((function(e){return e.id}));if(e&&e.suggestions.find((function(a){return a.id===t.object.id?(a.starred=!t.object.starred,Object(s.a)({},e)):null})),!a.includes(t.object.id)&&e.starred.length<10){var r=e.starred.push(t.object);return Object(s.a)(Object(s.a)({},e),{},{newState:r})}if(a.includes(t.object.id)){if(0===e.extraStarred.length){var i=e.starred.splice(a.indexOf(t.object.id),1);return Object(s.a)(Object(s.a)({},e),{},{newState:i})}if(e.extraStarred.length>0){var c=e.extraStarred.splice(0,1);e.starred.splice(a.indexOf(t.object.id),1);var o=e.starred.push(c[0]);return Object(s.a)(Object(s.a)({},e),{},{updatedState:o})}return Object(s.a)({},e)}if(!n.includes(t.object.id)&&e.starred.length>=10){var l=e.extraStarred.concat(t.object);return Object(s.a)(Object(s.a)({},e),{},{extraStarred:l})}return Object(s.a)({},e);default:return e}},x=a(34),M={list:[],data:{},meta:{pagination:{}},requestParams:{page:1,search:"",includes:"role",fields:"role.name, role.description",orderBy:"created_at",limit:20}},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case x.a:return Object(s.a)(Object(s.a)({},e),{},{list:t.payload.data,meta:t.payload.meta});case x.b:return Object(s.a)(Object(s.a)({},e),{},{requestParams:Object(s.a)(Object(s.a)({},e.requestParams),t.payload)});case x.c:return Object(s.a)(Object(s.a)({},e),{},{data:t.payload});default:return e}},R=a(110),_={tags:{data:[],meta:{}}},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case R.a:return Object(s.a)(Object(s.a)({},e),{},{tags:Object(s.a)({},t.payload)});default:return Object(s.a)({},e)}},V=Object(n.c)({login:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOGIN_WITH_EMAIL":case"LOGIN_WITH_FB":case"LOGIN_WITH_TWITTER":case"LOGIN_WITH_GOOGLE":case"LOGIN_WITH_GITHUB":case"LOGIN_WITH_JWT":case"LOGOUT_WITH_JWT":case"LOGOUT_WITH_FIREBASE":return Object(s.a)(Object(s.a)({},e),{},{values:t.payload});case"CHANGE_ROLE":return Object(s.a)(Object(s.a)({},e),{},{userRole:t.userRole});default:return e}}}),z={},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,t=arguments.length>1?arguments[1]:void 0;return t.type,Object(s.a)({},e)},W=a(49),G=(a(104),{reqParams:{includes:"project, location, type, tickets, tags, project.owner",fields:""},types:[],params:{isUpdate:!1,isTagsModal:!1},event:{id:null,name:"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435",description:null,begin:Math.round((new Date).getTime()/1e3),end:Math.round((new Date).getTime()/1e3),guarantee:null,percent:null,earning_type:0,capacity:null,creates_at:null,updated_at:null,project:{name:"\u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e"},location:{name:"\u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e"},tags:[],type:{},tickets:[]}}),K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.b:return Object(s.a)(Object(s.a)({},e),{},{event:t.payload});case W.c:return Object(s.a)(Object(s.a)({},e),{},{event:Object(s.a)(Object(s.a)({},e.event),{},Object(m.a)({},t.field,t.payload))});case W.e:return Object(s.a)(Object(s.a)({},e),{},Object(m.a)({},t.field,t.payload));case W.d:return Object(s.a)(Object(s.a)({},e),{},{types:t.payload});case W.a:return Object(s.a)(Object(s.a)({},e),{},{event:{id:null,name:"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435",description:null,begin:Math.round((new Date).getTime()/1e3),end:Math.round((new Date).getTime()/1e3),guarantee:null,percent:null,earning_type:0,capacity:null,creates_at:null,updated_at:null,project:{name:"\u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e"},location:{name:"\u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e"},tags:[],type:{},tickets:[]}});default:return Object(s.a)({},e)}},B=a(37),q={reqParams:{includes:"passengers, schedulable, schedulable.departure, schedulable.arrival, schedulable.address",fields:"",orderBy:"-begin"},schedules:[],schedule_id:null,isOpenModal:!1,schedule:{name:"",begin:Math.round((new Date).getTime()/1e3),end:null,schedulable_type:"Todo",schedulable:{},passengers:[]}},Y=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case B.g:return Object(s.a)(Object(s.a)({},t),{},{schedules:a.payload});case B.f:return Object(s.a)(Object(s.a)({},t),{},{schedule:a.payload});case B.b:return Object(s.a)(Object(s.a)({},t),{},{schedule:{name:"",begin:Math.round((new Date).getTime()/1e3),end:null,schedulable_type:"Todo",schedulable:{},passengers:[]}});case B.h:return Object(s.a)(Object(s.a)({},t),{},{schedule:Object(s.a)(Object(s.a)({},t.schedule),{},Object(m.a)({},a.field,a.payload))});case B.d:return Object(s.a)(Object(s.a)({},t),{},{schedule:Object(s.a)(Object(s.a)({},t.schedule),{},{schedulable:Object(s.a)(Object(s.a)({},t.schedule.schedulable),{},Object(m.a)({},a.field,a.payload))})});case B.e:return(e=[].concat(t.schedule.passengers))[a.id][a.field]=a.payload,Object(s.a)(Object(s.a)({},t),{},{schedule:Object(s.a)(Object(s.a)({},t.schedule),{},{passengers:e})});case B.a:return Object(s.a)(Object(s.a)({},t),{},{schedule:Object(s.a)(Object(s.a)({},t.schedule),{},{passengers:[].concat(Object(N.a)(t.schedule.passengers),[a.payload])})});case B.c:return(e=t.schedule.passengers).splice(a.id,1),Object(s.a)(Object(s.a)({},t),{},{schedule:Object(s.a)(Object(s.a)({},t.schedule),{},{passengers:e})});case B.i:return Object(s.a)(Object(s.a)({},t),{},Object(m.a)({},a.field,a.payload));default:return t}},Q=a(66),X={reqParams:{includes:"type",fields:"type.id, type.name",orderBy:"created_at"},types:[],params:{cost_id:null,isOpenModal:!1,isCost:!0,template_id:null,isAddTemplate:!1},cost:{},costs_sum:0,costs:[],templates:[],template:{}},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Q.a:var a=[].concat(e.costs);return a[t.id][t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{costs:a});case Q.b:var n=[].concat(e.costs);return n[t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{costs:n});case Q.c:return Object(s.a)(Object(s.a)({},e),{},Object(m.a)({},t.field,t.payload));default:return Object(s.a)({},e)}},J=a(68),$={reqParams:{includes:"guest, ticket, zone",fields:"",orderBy:"created_at",limit:20,page:1},params:{guest_id:null,isOpenModal:!1},guest:{},meta:{pagination:{}},guests:[],guest_type:[],ticket_type:[],zone_type:[]},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case J.a:var a=[].concat(e.guests);return a[t.id][t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{guests:a});case J.b:var n=[].concat(e.guests);return n[t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{guests:n});case J.c:return Object(s.a)(Object(s.a)({},e),{},Object(m.a)({},t.field,t.payload));default:return Object(s.a)({},e)}},te=a(59),ae={reqParams:{include:"type",fields:"",limit:10,page:1,orderBy:"event_contact.id"},meta:{pagination:{}},contacts:[],params:{isOpenModal:!1,contact_id:null},contact:{position:""}},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case te.a:var a=[].concat(e.contacts);return a[t.id][t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{contacts:a});case te.b:var n=[].concat(e.contacts);return n[t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{contacts:n});case te.c:return Object(s.a)(Object(s.a)({},e),{},Object(m.a)({},t.field,t.payload));case te.d:return Object(s.a)(Object(s.a)({},e),{},{contact:{position:""}});default:return Object(s.a)({},e)}},re=a(69),ie={reqParams:{includes:"type",fields:"",orderBy:"created_at",limit:20,page:1},params:{ticket_id:null,isOpenModal:!1},ticket:{},meta:{pagination:{}},tickets:[],types:[]},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case re.a:var a=[].concat(e.tickets);return a[t.id][t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{tickets:a});case re.b:var n=[].concat(e.tickets);return n[t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{tickets:n});case re.c:return Object(s.a)(Object(s.a)({},e),{},Object(m.a)({},t.field,t.payload));default:return Object(s.a)({},e)}},oe=a(79),se={reqParams:{includes:"",fields:"",orderBy:"created_at"},finance:{},finances:[]},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case oe.a:var a=[].concat(e.finances);return a[t.id][t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{finances:a});case oe.b:var n=[].concat(e.finances);return n[t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{finances:n});case oe.c:return Object(s.a)(Object(s.a)({},e),{},Object(m.a)({},t.field,t.payload));default:return Object(s.a)({},e)}},ue=a(80),de={reqParams:{includes:"",fields:"",limit:4,page:1},meta:{pagination:{}},documents:[]},pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ue.a:var a=[].concat(e.documents);return a[t.id][t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{documents:a});case ue.b:var n=[].concat(e.documents);return n[t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{documents:n});case ue.c:return Object(s.a)(Object(s.a)({},e),{},Object(m.a)({},t.field,t.payload));default:return Object(s.a)({},e)}},me=a(56),be={reqParams:{includes:"tags, files",fields:"",orderBy:"created_at",limit:12,page:1,filter:"all",tags:[],project_id:null,event_id:null},params:{isOpenModal:!1,task_id:8,isTagsOpen:!1,isTagsModal:!1},tasks:[],task:{tags:[],files:{},name:""},meta:{pagination:{}}},he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:be,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case me.a:var a=[].concat(e.tasks);return a[t.id][t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{tasks:a});case me.b:var n=[].concat(e.tasks);return n[t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{tasks:n});case me.c:return Object(s.a)(Object(s.a)({},e),{},Object(m.a)({},t.field,t.payload));case me.d:return Object(s.a)(Object(s.a)({},e),{},{task:Object(s.a)(Object(s.a)({},e.task),{},{files:t.payload})});default:return Object(s.a)({},e)}},fe=a(35),ve={releases:{},modal:!1,userFilterData:{includes:"project,type",fields:"",orderBy:"created_at",limit:8,page:1,projects:"",types:"",contacts:"",tags:"",search:"",from:"",to:""},modalData:{project_id:"",name:"\u041d\u0410\u0417\u0412\u0410\u041d\u0418\u0415 \u0420\u0415\u041b\u0418\u0417\u0410"},releasesTypes:{data:[],meta:{}},sidebarHeight:""},ge=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ve,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case fe.h:return Object(s.a)(Object(s.a)({},t),{},{userFilterData:Object(s.a)(Object(s.a)({},t.userFilterData),{},{page:a.payload})});case fe.e:return Object(s.a)(Object(s.a)({},t),{},{modalData:Object(s.a)(Object(s.a)({},t.modalData),{},Object(m.a)({},a.field,a.payload))});case fe.c:return Object(s.a)(Object(s.a)({},t),{},{modal:a.payload});case fe.d:return Object(s.a)(Object(s.a)({},t),{},{releasesTypes:Object(s.a)({},a.payload)});case fe.i:return Object(s.a)(Object(s.a)({},t),{},{userFilterData:Object(s.a)(Object(s.a)({},t.userFilterData),{},(e={},Object(m.a)(e,a.field,a.payload),Object(m.a)(e,"page",1),e))});case fe.f:return Object(s.a)(Object(s.a)({},t),{},{sidebarHeight:a.payload});case fe.b:return Object(s.a)(Object(s.a)({},t),{},{modalData:{project_id:"",name:"\u041d\u0410\u0417\u0412\u0410\u041d\u0418\u0415 \u0420\u0415\u041b\u0418\u0417\u0410"}});case fe.a:return Object(s.a)(Object(s.a)({},t),{},{userFilterData:{includes:"",fields:"",orderBy:"created_at",limit:8,page:1,projects:"",types:"",contacts:"",tags:"",search:"",from:"",to:""}});case fe.g:return Object(s.a)(Object(s.a)({},t),{},{releases:Object(s.a)({},a.payload)});default:return t}},ye={},Oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ye,t=arguments.length>1?arguments[1]:void 0;return t.type,Object(s.a)({},e)},Ee=a(23),je={reqParams:{includes:"project,type,project.owner,genre,tracks,subgenre,cover",fields:""},types:[],genres:[],subgenres:[],params:{isEdited:!1},release:{id:null,name:"",description:null,releases_date:null,prereleases_date:null,divide:null,divider_artists:[],budget:null,release_link:null,entry_year:null,cover:{},promo_link:null,artist_socials:{facebook:"",youtube:"",twitter:"",vkontakte:"",instagram:"",tiktok:""},artist_shops:{spotify:"",itunes:"",youtube:"",vkontakte:""},artist_description:null,creates_at:null,updated_at:null,genre:{},subgenre:{},project:{name:""},type:{},tracks:[]}},Se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:je,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ee.h:return Object(s.a)(Object(s.a)({},e),{},{release:t.payload});case Ee.i:return Object(s.a)(Object(s.a)({},e),{},{release:Object(s.a)(Object(s.a)({},e.release),{},Object(m.a)({},t.field,t.payload))});case Ee.m:return Object(s.a)(Object(s.a)({},e),{},Object(m.a)({},t.field,t.payload));case Ee.l:return Object(s.a)(Object(s.a)({},e),{},{types:t.payload});case Ee.j:return Object(s.a)(Object(s.a)({},e),{},{genres:t.payload});case Ee.k:return Object(s.a)(Object(s.a)({},e),{},{subgenres:t.payload});case Ee.c:var a=[].concat(e.release.tracks);return Array.isArray(a[t.id][t.field])||(a[t.id][t.field]=[]),a[t.id][t.field].push(t.payload),Object(s.a)(Object(s.a)({},e),{},{release:Object(s.a)(Object(s.a)({},e.release),{},{tracks:a})});case Ee.e:var n=[].concat(e.release.tracks);return Array.isArray(n[t.id][t.field])||(n[t.id][t.field]=[]),n[t.id][t.payload].splice(t.field,1),Object(s.a)(Object(s.a)({},e),{},{release:Object(s.a)(Object(s.a)({},e.release),{},{tracks:n})});case Ee.f:var r=[].concat(e.release.tracks);return r[t.id][t.field]=t.payload,Object(s.a)(Object(s.a)({},e),{},{release:Object(s.a)(Object(s.a)({},e.release),{},{tracks:r})});case Ee.g:var i=[].concat(e.release.tracks),c=i[t.id][t.field].length;return 0===c?i[t.id][t.field].push(t.payload):i[t.id][t.field][c-1]=t.payload,Object(s.a)(Object(s.a)({},e),{},{release:Object(s.a)(Object(s.a)({},e.release),{},{tracks:i})});case Ee.b:var o=[].concat(e.release.tracks);return o.push({name:"\u041d\u043e\u0432\u0430\u044f \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044f",track_composer:[],text_composer:[],together_with:[]}),Object(s.a)(Object(s.a)({},e),{},{release:Object(s.a)(Object(s.a)({},e.release),{},{tracks:o})});case Ee.d:var l=[].concat(e.release.tracks);return l.splice(t.id,1),Object(s.a)(Object(s.a)({},e),{},{release:Object(s.a)(Object(s.a)({},e.release),{},{tracks:l})});case Ee.a:return Object(s.a)(Object(s.a)({},e),{},{release:{id:null,name:"",description:null,releases_date:null,prereleases_date:null,divide:null,divider_artists:[],budget:null,release_link:null,entry_year:null,cover:{},promo_link:null,artist_socials:{facebook:"",youtube:"",twitter:"",vkontakte:"",instagram:"",tiktok:""},artist_shops:{spotify:"",itunes:"",youtube:"",vkontakte:""},artist_description:null,creates_at:null,updated_at:null,genre:{},subgenre:{},project:{name:""},type:{},tracks:[]}});default:return Object(s.a)({},e)}},Te=Object(n.c)({customizer:A,auth:V,navbar:P,helper:w,projects:y,analytics:p,events:I,tags:H,contacts:f,users:F,eventDetail:U,eventInfo:K,eventCosts:Z,schedules:Y,eventGuests:ee,eventContacts:ne,eventTickets:ce,eventFinances:le,eventDocuments:pe,tasks:he,releases:ge,releaseDetail:Oe,releaseInfo:Se}),Ae=function(e,t){return t.type===o.a&&(e=void 0),Te(e,t)},Ne=[c.a,i()()],ke=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||n.d,we=Object(n.e)(Ae,{},ke(n.a.apply(void 0,Ne)))},66:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i}));var n="SET_COST_FIELD",r="SET_COSTS_FIELD",i="SET_COSTS_VALUE"},68:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i}));var n="SET_GUEST_FIELD",r="SET_GUESTS_FIELD",i="SET_GUESTS_VALUE"},69:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i}));var n="SET_TICKET_FIELD",r="SET_TICKETS_FIELD",i="SET_TICKETS_VALUE"},70:function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return u}));var n=a(6),r=a(7),i=a(72),c=a.n(i),o=a(11),s=a(22),l="https://back.arimo.ru/",u=function(){function e(t){return Object(n.a)(this,e),this.isAuth=!(!t||!t.auth)&&t.auth,this.instance=c.a.create({baseURL:"https://back.arimo.ru/api/",headers:{accept:"application/x.arimo.v1+json"}}),this.init()}return Object(r.a)(e,[{key:"init",value:function(){return this.isAuth?(this.instance.interceptors.request.use((function(e){return e.headers.Authorization="Bearer "+o.a(),o.d()?o.h().then((function(t){return e.headers.Authorization="Bearer "+t.token,e})).catch((function(){o.i(),s.a.push("/login")})):e}),(function(e){return Promise.reject(e)})),this.instance):this.instance}}]),e}()},71:function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return u})),a.d(t,"c",(function(){return d}));var n=a(2),r=a(22),i=a(11),c=a(28),o=a(34),s=a(21),l=function(e,t){return function(a){a(Object(c.e)("login-form")),Object(i.e)({email:e,password:t}).then((function(e){a({type:o.c,payload:Object(n.a)(Object(n.a)({},e.me),{},{verify_id:e.me.id,me_id:null,role:e.me.role.name})}),r.a.push("/")})).finally((function(){a(Object(c.g)("login-form"))}))}},u=function(){return function(e){Object(i.f)().then().catch().finally((function(){Object(i.i)(),e({type:s.a}),r.a.push("/login")}))}},d=function(e,t,a){return function(s){s(Object(c.e)("register-form")),Object(i.g)({name:e,email:t,password:a}).then((function(e){s({type:o.c,payload:Object(n.a)(Object(n.a)({},e.me.data),{},{verify_id:e.me.data.id,me_id:null,role:e.me.data.role.data.name})}),r.a.push("/")})).catch().finally((function(){s(Object(c.g)("register-form"))}))}}},79:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i}));var n="SET_FINANCE_FIELD",r="SET_FINANCES_FIELD",i="SET_FINANCES_VALUE"},80:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i}));var n="SET_DOCUMENT_FIELD",r="SET_DOCUMENTS_FIELD",i="SET_DOCUMENTS_VALUE"},91:function(e,t,a){"use strict";var n=a(6),r=a(7),i=a(12),c=a(13),o=a(0),s=a.n(o),l=a(4),u=a.n(l),d=function(e){Object(i.a)(a,e);var t=Object(c.a)(a);function a(){return Object(n.a)(this,a),t.apply(this,arguments)}return Object(r.a)(a,[{key:"render",value:function(){return s.a.createElement("div",{className:u()("vx-radio-con ".concat(this.props.className," vx-radio-").concat(this.props.color))},s.a.createElement("input",{type:"radio",defaultChecked:this.props.defaultChecked,value:this.props.value,disabled:this.props.disabled,name:this.props.name,onClick:this.props.onClick,onChange:this.props.onChange,ref:this.props.ref,checked:this.props.checked}),s.a.createElement("span",{className:u()("vx-radio",{"vx-radio-sm":"sm"===this.props.size,"vx-radio-lg":"lg"===this.props.size})},s.a.createElement("span",{className:"vx-radio--border"}),s.a.createElement("span",{className:"vx-radio--circle"})),s.a.createElement("span",null,this.props.label))}}]),a}(s.a.Component);t.a=d}},[[212,5,6]]]);
//# sourceMappingURL=main.c77036f9.chunk.js.map